aboutsummaryrefslogtreecommitdiff
path: root/src/lib/extensions
diff options
context:
space:
mode:
authorTymanWasTaken <tyman@tyman.tech>2021-05-17 15:37:57 -0400
committerTymanWasTaken <tyman@tyman.tech>2021-05-17 15:37:57 -0400
commitb27d09d2e18a936fe727b2d4254cab7589f61f1f (patch)
tree177e0ca41cef2f78bb65b09199d6e7ca5faa1671 /src/lib/extensions
parent9aee8c80067530b178612f1261c38b83683f266d (diff)
downloadtanzanite-b27d09d2e18a936fe727b2d4254cab7589f61f1f.tar.gz
tanzanite-b27d09d2e18a936fe727b2d4254cab7589f61f1f.tar.bz2
tanzanite-b27d09d2e18a936fe727b2d4254cab7589f61f1f.zip
it didn't work
Diffstat (limited to 'src/lib/extensions')
-rw-r--r--src/lib/extensions/Util.ts4
1 files changed, 2 insertions, 2 deletions
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<void> {
@@ -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);