let x;
let x2;
let x3;
let x4;
let x5;
let x6;
let x7;
let x8;
let x9;
let x10;
let x11;
//yönetici
if (msg.member.hasPermission("ADMINISTRATOR")) x = "+"
if (!msg.member.hasPermission("ADMINISTRATOR")) x = "-"
//Denetim kaydı
if (msg.member.hasPermission("VIEW_AUDIT_LOG")) x2 = "+"
if (!msg.member.hasPermission("VIEW_AUDIT_LOG")) x2 = "-"
//Sunucuyu yönet
if (msg.member.hasPermission("MANAGE_GUILD")) x3 = "+"
if (!msg.member.hasPermission("MANAGE_GUILD")) x3 = "-"
//Rolleri yönet
if (msg.member.hasPermission("MANAGE_ROLES")) x4 = "+"
if (!msg.member.hasPermission("MANAGE_ROLES")) x4 = "-"
//Kanalları yönet
if (msg.member.hasPermission("MANAGE_CHANNELS")) x5 = "+"
if (!msg.member.hasPermission("MANAGE_CHANNELS")) x5 = "-"
//üyeleri at
if (msg.member.hasPermission("KICK_MEMBERS")) x6 = "+"
if (!msg.member.hasPermission("KICK_MEMBERS")) x6 = "-"
//üyeleri yasakla
if (msg.member.hasPermission("BAN_MEMBERS")) x7 = "+"
if (!msg.member.hasPermission("BAN_MEMBERS")) x7 = "-"
//mesajları yönet
if (msg.member.hasPermission("MANAGE_MESSAGES")) x8 = "+"
if (!msg.member.hasPermission("MANAGE_MESSAGES")) x8 = "-"
//kullanıcı adlarını yönet
if (msg.member.hasPermission("MANAGE_NICKNAMES")) x9 = "+"
if (!msg.member.hasPermission("MANAGE_NICKNAMES")) x9 = "-"
//emojileri yönet
if (msg.member.hasPermission("MANAGE_EMOJIS")) x10 = "+"
if (!msg.member.hasPermission("MANAGE_EMOJIS")) x10 = "-"
//webhookları yönet
if (msg.member.hasPermission("MANAGE_WEBHOOKS")) x11 = "+"
if (!msg.member.hasPermission("MANAGE_WEBHOOKS")) x11 = "-"
msg.channel.send(stripIndents`
\`\`\`diff
${x} Yönetici
${x2} Denetim Kaydını Görüntüle
${x3} Sunucuyu Yönet
${x4} Rolleri Yönet
${x5} Kanalları Yönet
${x6} Üyeleri At //iXbir.net
${x7} Üyeleri Yasakla
${x8} Mesajları Yönet
${x9} Kullanıcı Adlarını Yönet
${x10} Emojileri Yönet
${x11} Webhook'ları Yönet
\`\`\`
`)
msg.channel.send("```md\n# Başında \"-\" olanlar o yetkiye sahip olunmadığını gösterir. \n# Başında \"+\" olanlar o yetkiye sahip olunduğunu gösterir. \n```")
vgodviria Adlı Kullanıcıdan Alıntı: Yoruma gitEğer 0'dan kod yazıyorsan discord.js v14 ile yazman daha sağlıklı olacaktır, piyasada v12 kullanan çok az insan kaldı.
0dan yazmıyorum arşivimde v12 , v13 , v14 gibi kodlar var zaten bazen v14de atabilirim belki ama v12 daha çok seviyorum