2019-05-31 16:26:06 +02:00
|
|
|
const { Command } = require('discord-akairo');
|
|
|
|
|
|
|
|
class reloadCommand extends Command {
|
|
|
|
constructor() {
|
|
|
|
super('reload', {
|
|
|
|
aliases: ['reload'],
|
|
|
|
category: 'owner',
|
|
|
|
ownerOnly: 'true',
|
|
|
|
args: [
|
|
|
|
{
|
|
|
|
id: 'command',
|
|
|
|
type: 'string',
|
|
|
|
match: 'rest'
|
|
|
|
}
|
|
|
|
],
|
|
|
|
description: {
|
|
|
|
content: 'reload command',
|
|
|
|
usage: '[command]',
|
|
|
|
examples: ['ping']
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
async exec(message, args) {
|
|
|
|
this.handler.reload(args.command);
|
2019-07-23 16:47:27 +02:00
|
|
|
return message.channel.send(`successfully reloaded command ${args.command}`);
|
2019-05-31 16:26:06 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = reloadCommand;
|