From b27d09d2e18a936fe727b2d4254cab7589f61f1f Mon Sep 17 00:00:00 2001 From: TymanWasTaken Date: Mon, 17 May 2021 15:37:57 -0400 Subject: it didn't work --- src/lib/extensions/Util.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/extensions') diff --git a/src/lib/extensions/Util.ts b/src/lib/extensions/Util.ts index 0aadc89..c99cb45 100644 --- a/src/lib/extensions/Util.ts +++ b/src/lib/extensions/Util.ts @@ -241,7 +241,7 @@ export class Util extends ClientUtil { const apiRes = (await got .get(`https://api.ashcon.app/mojang/v2/user/${username}`) .json()) as uuidRes; - return apiRes.uuid; + return apiRes.uuid.replace(/-/g, ''); } public async syncSlashCommands(force = false): Promise { @@ -251,7 +251,7 @@ export class Util extends ClientUtil { if ( !this.client.commandHandler.modules.find( (cmd) => cmd.id == registeredCommand.name - ) || + )?.execSlash || force ) { await this.client.application.commands.delete(registeredCommand.id); -- cgit