This commit is contained in:
Dragon Fire
2021-06-05 13:07:07 -04:00
parent 4a10f4edb1
commit dc7a0cd6c7
+2 -2
View File
@@ -27,7 +27,7 @@ module.exports = class CommandDispatcher {
const command = this.resolveCommand(matched[2].toLowerCase());
if (!command) {
return {
command: this.registry.commands.find(cmd => cmd.unknown),
command: this.client.registry.commands.find(cmd => cmd.unknown),
args: { command: command[2].toLowerCase() }
};
}
@@ -54,6 +54,6 @@ module.exports = class CommandDispatcher {
}
resolveCommand(command) {
return this.registry.commands.find(cmd => cmd.name === command || cmd.aliases.includes(command));
return this.client.registry.commands.find(cmd => cmd.name === command || cmd.aliases.includes(command));
}
};