This commit is contained in:
Dragon Fire
2024-04-06 19:56:13 -04:00
parent 1681675e46
commit bddb885cf1
+1 -1
View File
@@ -25,7 +25,7 @@ module.exports = class CommandDispatcher {
}
isPatternCommand(msg) {
const patternCommands = this.commands
const patternCommands = this.client.registry.commands
.filter(cmd => cmd.patterns.length && cmd.patterns.some(pattern => pattern.test(msg.content)));
if (!patternCommands.size) return false;
return patternCommands.first();