VerifySpoof
Süper Üye
Komutlar Klasörüne = komutlar/embed-duyuru.js
Kullanım : prefix + e-duyuru yardım
Kullanım : prefix + e-duyuru yardım
JavaScript:
const discord = require('discord.js')
const ayarlar = require('../ayarlar.json')
const prefix = ayarlar.prefix
exports.run = async (client, message, args) => {
let renk = args[0];
let yazı = args.splice(1, args.length).join(" ")
if(!message.member.hasPermission("MANAGE_MESSAGES")) {
const embed = new discord.RichEmbed()
.setAuthor(message.author.username, message.author.avatarURL)
.setColor('RED')
.setDescription("Bu komutu kullanabilmek için `Mesajları Yönet` yetkisine sahip olmanız gerek.")
.setTimestamp()
message.channel.send(embed)
} else {
if (args.length < 1) {
const embed = new discord.RichEmbed()
.setAuthor(message.author.username, message.author.avatarURL)
.setColor('RED')
.setDescription(`Yardım Almak İçin ${prefix}e-duyuru yardım`)
.setTimestamp()
message.channel.send(embed)
}
if (args[0] == 'yardım') {
const embedd = new discord.RichEmbed()
.setAuthor('Embed Duyuru Yardım')
.setColor('BLUE')
.setDescription(`${prefix}e-duyuru \`\`mavi\`\` - \`\`kırmızı\`\` - \`\`yeşil\`\` - \`\`turuncu\`\` veya \`\`random\`\`\n**${prefix}e-duyuru <renk> <yazı>**`)
.setTimestamp()
message.channel.send(embedd);
}
if (args[0] == 'mavi') {
const embedd = new discord.RichEmbed()
.setAuthor('Duyuru')
.setColor('BLUE')
.setDescription(yazı)
.setTimestamp()
message.channel.send(embedd);
message.delete();
}
if (args[0] == 'kırmızı') {
const embedd = new discord.RichEmbed()
.setAuthor('Duyuru')
.setColor('RED')
.setDescription(yazı)
.setTimestamp()
message.channel.send(embedd);
message.delete();
}
if (args[0] == 'yeşil') {
const embedd = new discord.RichEmbed()
.setAuthor('Duyuru')
.setColor('GREEN')
.setDescription(yazı)
.setTimestamp()
message.channel.send(embedd);
message.delete();
}
if (args[0] == 'turuncu') {
const embedd = new discord.RichEmbed()
.setAuthor('Duyuru')
.setColor('ORANGE')
.setDescription(yazı)
.setTimestamp()
message.channel.send(embedd);
message.delete();
}
if (args[0] == 'random') {
const embedd = new discord.RichEmbed()
.setAuthor('Duyuru')
.setColor('RANDOM')
.setDescription(yazı)
.setTimestamp()
message.channel.send(embedd);
message.delete();
}
}
};
exports.conf = {
aliases: [ 'a' ],
enabled: true,
guildOnly: false,
permLevel: 0
};
exports.help = {
name: 'e-duyuru',
category: 'Kullanıcı',
usage: 'duyuru <yazı>'
};