reload listener

This commit is contained in:
loicbersier 2019-12-31 12:19:05 +01:00
parent 3a86958cee
commit 963981401d

View file

@ -0,0 +1,30 @@
const { Command } = require('discord-akairo');
class reloadlistenerCommand extends Command {
constructor() {
super('reloadlistener', {
aliases: ['reloadlistener'],
category: 'owner',
ownerOnly: 'true',
args: [
{
id: 'listener',
type: 'string',
match: 'rest'
}
],
description: {
content: 'reload command',
usage: '[command]',
examples: ['ping']
}
});
}
async exec(message, args) {
this.client.listenerHandler.reload(args.listener);
return message.channel.send(`successfully reloaded listener ${args.listener}`);
}
}
module.exports = reloadlistenerCommand;