mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-16 15:57:54 +02:00
Fix
This commit is contained in:
@@ -48,7 +48,7 @@ module.exports = class XiaoClient extends CommandoClient {
|
|||||||
if (typeof file !== 'object' || Array.isArray(file)) return null;
|
if (typeof file !== 'object' || Array.isArray(file)) return null;
|
||||||
for (const [id, value] of Object.entries(file)) {
|
for (const [id, value] of Object.entries(file)) {
|
||||||
if (typeof value !== 'number') continue;
|
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;
|
if (!found || found.uses === undefined) continue;
|
||||||
found.uses = value;
|
found.uses = value;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user