This commit is contained in:
Dragon Fire
2020-06-06 00:27:45 -04:00
parent 1d9095868d
commit 63293a24cf
+1 -1
View File
@@ -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;
}