diff --git a/src/utils/functions/account.ts b/src/utils/functions/account.ts index 2fc5913..58f1dd6 100644 --- a/src/utils/functions/account.ts +++ b/src/utils/functions/account.ts @@ -9,6 +9,7 @@ const mojanguuid = "https://sessionserver.mojang.com/session/minecraft/profile/" const hypixel = "https://api.hypixel.net/player" const guild = "https://api.hypixel.net/guild" const minotar = "https://minotar.net/helm/" +type GuildQuerqType = "player" | "name" | "id" async function getUUID(ign: string): Promise { try { @@ -45,7 +46,7 @@ async function getPlayer(uuid: string): Promise { async function getGuild( query: string, - type?: string, + type?: GuildQuerqType, ): Promise { const reqType = type ? type : "player"