This repository has been archived on 2022-10-14. You can view files and clone it, but cannot push or open issues/pull-requests.
melonybot/commands/kick.js

20 lines
373 B
JavaScript

module.exports = class extends Akairo.Command {
constructor() {
super("kick", {
aliases: ["kick"],
args: [{
id:"user",
type:"user"
}],
userPermissions: ['KICK_MEMBERS'],
}).usage = "<user>"
}
async exec(message, args) {
try {
await user.kick()
await message.react("👌")
} catch(e) {
await message.reply(e.message)
}
}
}