forked from Supositware/Haha-Yes
Can unban user
This commit is contained in:
parent
d57af1b669
commit
3e625b020b
1 changed files with 26 additions and 0 deletions
26
commands/admin/unban.js
Normal file
26
commands/admin/unban.js
Normal file
|
@ -0,0 +1,26 @@
|
|||
const { Command } = require('discord.js-commando');
|
||||
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.`));
|
||||
};
|
||||
};
|
Loading…
Reference in a new issue