| 8 | module.exports = class extends Command { |
| 9 | |
| 10 | constructor(...args) { |
| 11 | super(...args, { |
| 12 | aliases: ['commands', 'cmd', 'cmds'], |
| 13 | guarded: true, |
| 14 | description: (language) => language.get('COMMAND_HELP_DESCRIPTION'), |
| 15 | usage: '(command:command)' |
| 16 | }); |
| 17 | |
| 18 | this.createCustomResolver('command', (arg, possible, msg) => { |
| 19 | if (!arg || arg === '') return undefined; |
| 20 | return this.client.arguments.get('command').run(arg, possible, msg); |
| 21 | }); |
| 22 | |
| 23 | // Cache the handlers |
| 24 | this.handlers = new Map(); |
| 25 | } |
| 26 | |
| 27 | async run(msg, [command]) { |
| 28 | if (command) { |