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

Method buildHelp

src/commands/User/help.js:69–79  ·  view source on GitHub ↗
(msg)

Source from the content-addressed store, hash-verified

67 }
68
69 async buildHelp(msg) {
70 const commands = await this._fetchCommands(msg);
71 const prefix = msg.guild ? msg.guild.settings.get('prefix') : this.client.options.prefix;
72
73 const helpMessage = [];
74 for (const [category, list] of commands) {
75 helpMessage.push(`**${category} commands**:\n`, list.map(this.formatCommand.bind(this, msg, prefix, false)).join('\n'), '');
76 }
77
78 return helpMessage.join('\n');
79 }
80
81 async buildDisplay(msg) {
82 const arrowToLeftEmoji = this.client.emojis.cache.get(this.client.settings.get('emoji.arrowToLeft'));

Callers 1

runMethod · 0.80

Calls 2

_fetchCommandsMethod · 0.80
joinMethod · 0.80

Tested by

no test coverage detected