Reload command
This commit is contained in:
parent
af4a142ef8
commit
7a022ce9c3
1 changed files with 30 additions and 0 deletions
30
commands/owner/reload.js
Normal file
30
commands/owner/reload.js
Normal file
|
@ -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;
|
Loading…
Reference in a new issue