diff --git a/commands/owner/reload.js b/commands/owner/reload.js new file mode 100644 index 0000000..117e01f --- /dev/null +++ b/commands/owner/reload.js @@ -0,0 +1,30 @@ +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); + return message.channel.send(`Sucessfully reloaded command ${args.command}`); + } +} + +module.exports = reloadCommand; \ No newline at end of file