From 63293a24cf37ba69f1ec352c49d3e4e9fb3f5aea Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sat, 6 Jun 2020 00:27:45 -0400 Subject: [PATCH] Fix --- structures/Client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/structures/Client.js b/structures/Client.js index 40ce41eb..e90d3d74 100644 --- a/structures/Client.js +++ b/structures/Client.js @@ -48,7 +48,7 @@ module.exports = class XiaoClient extends CommandoClient { if (typeof file !== 'object' || Array.isArray(file)) return null; for (const [id, value] of Object.entries(file)) { if (typeof value !== 'number') continue; - const found = this.client.registry.commands.get(id); + const found = this.registry.commands.get(id); if (!found || found.uses === undefined) continue; found.uses = value; }