mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Directly import command-leaderboard
This commit is contained in:
@@ -48,7 +48,7 @@ module.exports = class CommandLeaderboardImportCommand extends Command {
|
||||
if (typeof value !== 'number') continue;
|
||||
const found = this.client.registry.commands.get(id);
|
||||
if (!found || found.uses === undefined) continue;
|
||||
found.uses += value;
|
||||
found.uses = value;
|
||||
}
|
||||
return msg.say('Successfully imported command leaderboard.');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user