Haha-Yes/commands/admin/unban.js

28 lines
860 B
JavaScript
Raw Permalink Normal View History

2018-11-13 20:24:23 +01:00
const { Command } = require('discord.js-commando');
2018-12-25 19:17:07 +01:00
const blacklist = require('../../json/blacklist.json');
2018-11-13 20:24:23 +01:00
module.exports = class UnbanCommand extends Command {
constructor(client) {
super(client, {
name: 'unban',
group: 'admin',
memberName: 'unban',
description: 'unban the provided id',
guildOnly: true,
clientPermissions: ['BAN_MEMBERS'],
userPermissions: ['BAN_MEMBERS'],
args: [
{
key: 'member',
prompt: 'Wich member would you like to unban?',
type: 'user',
}
]
});
}
async run(message, { member }) {
message.guild.unban(member)
.then(() => message.reply(`user was succesfully unbanned.`));
};
};