Haha-Yes/commands/owner/reloadcmd.js
2019-12-31 12:18:58 +01:00

30 lines
No EOL
586 B
JavaScript

const { Command } = require('discord-akairo');
class reloadcmdCommand extends Command {
constructor() {
super('reloadcmd', {
aliases: ['reloadcmd'],
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);
return message.channel.send(`successfully reloaded command ${args.command}`);
}
}
module.exports = reloadcmdCommand;