MCPcopy Create free account
hub / github.com/RTByte/rtbyte / constructor

Method constructor

src/commands/User/help.js:10–25  ·  view source on GitHub ↗
(...args)

Source from the content-addressed store, hash-verified

8module.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) {

Callers

nothing calls this directly

Calls 1

runMethod · 0.45

Tested by

no test coverage detected