Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
[email protected] webmail now available. Want one? Go here.
Cannot use outlook/hotmail/live here to register as they blocking our mail servers. #microsoftdeez
Obey the Epel!

Paste

Pasted as JavaScript by registered user karinca ( 3 years ago )
const Discord = require('discord.js');
exports.run = async (client, message, args) => {
  //cigolatli karinca#9999 kodun çalınması durumunda ulaşabilirsiniz.
   if (!message.member.hasPermission("BAN_MEMBERS"))
    return message.channel.send(`\`Üyeleri Yasakla\` yetkisine sahip değilsiniz.`);
  
 let kullanici = message.mentions.users.first()
 if(!kullanici) return message.channel.send('Sunucudan yasaklanmasını istediğiniz kullanıcıyı etiketleyin.')

const banembed = new Discord.MessageEmbed()
.setColor('BLURPLE')
.setAuthor(` ${kullanici.tag} adlı kullanıcı sunucudan yasaklandı.`)
.setDescription(`Bu yasak ${message.author} tarafından uygulandı.`)
.setImage(`https://media1.tenor.com/images/d856e0e0055af0d726ed9e472a3e9737/tenor.gif?itemid=8540509`)
message.channel.send(banembed)
  message.guild.members.ban(kullanici)
}

    exports.conf = {
        enabled: true,
        guildOnly: false,
        aliases: [],
        permLevel: 0
    };
      
    exports.help = {
        name: 'ban',
        description: 'ban',
        usage: 'ban',
    
    };

 

Revise this Paste

Your Name: Code Language: