(msg)
| 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')); |
no test coverage detected