()
| 220 | } |
| 221 | |
| 222 | async reloadCommands() { |
| 223 | this.commands.clear(); |
| 224 | this.aliases.clear(); |
| 225 | this.categories.clear(); |
| 226 | this.stats.clear(); |
| 227 | this.cooldowns.clear(); |
| 228 | this.disabledCommands.clear(); |
| 229 | this.prefixlessCommands.clear(); |
| 230 | await this.loadCommands(); |
| 231 | } |
| 232 | |
| 233 | getCommand(text: string, prefixes: string[]) { |
| 234 | const usedPrefix = prefixes.find(p => text.startsWith(p)); |
no test coverage detected