You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Haha-Yes/commands/admin/unban.js

28 lines
860 B
JavaScript

const { Command } = require('discord.js-commando');
const blacklist = require('../../json/blacklist.json');
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.`));
};
};