From dc7a0cd6c7b9a946f19fa290df622e1f452a1185 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sat, 5 Jun 2021 13:07:07 -0400 Subject: [PATCH] Fix --- framework/Dispatcher.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/Dispatcher.js b/framework/Dispatcher.js index 612d7645..0483d526 100644 --- a/framework/Dispatcher.js +++ b/framework/Dispatcher.js @@ -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)); } };