()
| 188 | } |
| 189 | } |
| 190 | async reloadCommands() { |
| 191 | this.commands.clear(); |
| 192 | this.aliases.clear(); |
| 193 | this.categories.clear(); |
| 194 | this.stats.clear(); |
| 195 | this.cooldowns.clear(); |
| 196 | this.disabledCommands.clear(); |
| 197 | this.prefixlessCommands.clear(); |
| 198 | await this.loadCommands(); |
| 199 | } |
| 200 | getCommand(text, prefixes) { |
| 201 | const usedPrefix = prefixes.find(p => text.startsWith(p)); |
| 202 | const firstWord = text.trim().split(' ')[0].toLowerCase(); |
no test coverage detected