mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Reload
This commit is contained in:
@@ -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}\`.`);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user