Skip to content
Snippets Groups Projects
Commit 64deb57c authored by Reviath's avatar Reviath
Browse files

Update commands/ban.js

parent d971cdb3
Branches
No related tags found
No related merge requests found
......@@ -10,11 +10,10 @@ exports.run = async(bot, message, args) => {
reason = "Belirtilmedi";
}
if (!message.guild.member(user).bannable) return message.reply(`Yeterli Yetkiye Sahip Değilim`);
await message.channel.send(`<@${user.id}> \`(${user.tag})\`, \`${reason}\` Sebebi İle Banlandı \nModeratör: <@${message.author.id}>`);
await message.guild.members.ban(user, {days: 7, reason: reason}).catch(e => {
console.log(e)
});
await message.channel.send(`<@${user.id}> \`(${user.tag})\`, \`${reason}\` Sebebi İle Banlandı \nModeratör: <@${message.author.id}>`);
};
module.exports.help = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment