This commit is contained in:
Daniel Odendahl Jr
2018-01-11 19:24:13 +00:00
parent 0a08b7d3ef
commit 68ee6eb4e9
+26
View File
@@ -0,0 +1,26 @@
const { Command } = require('discord.js-commando');
module.exports = class ReloadCommand extends Command {
constructor(client) {
super(client, {
name: 'reload',
group: 'util',
memberName: 'reload',
description: 'Reloads a command.',
ownerOnly: true,
guarded: true,
args: [
{
key: 'command',
prompt: 'Which command would you like to reload?',
type: 'command'
}
]
});
}
run(msg, { command }) {
command.reload();
return msg.say(`Reloaded \`${command.name}\`.`);
}
};