unload command
This commit is contained in:
parent
7a022ce9c3
commit
0d94fa1471
1 changed files with 30 additions and 0 deletions
30
commands/owner/unload.js
Normal file
30
commands/owner/unload.js
Normal file
|
@ -0,0 +1,30 @@
|
|||
const { Command } = require('discord-akairo');
|
||||
|
||||
class unloadCommand extends Command {
|
||||
constructor() {
|
||||
super('unload', {
|
||||
aliases: ['unload'],
|
||||
category: 'owner',
|
||||
ownerOnly: 'true',
|
||||
args: [
|
||||
{
|
||||
id: 'command',
|
||||
type: 'string',
|
||||
match: 'rest'
|
||||
}
|
||||
],
|
||||
description: {
|
||||
content: 'Unload command',
|
||||
usage: '[command]',
|
||||
examples: ['ping']
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
async exec(message, args) {
|
||||
this.handler.remove(args.command);
|
||||
return message.channel.send(`Sucessfully unloaded command ${args.command}`);
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = unloadCommand;
|
Loading…
Reference in a new issue