From 523f8115e7e9775247b31ff77086c0cdcca982f7 Mon Sep 17 00:00:00 2001 From: Taken Date: Wed, 16 Oct 2024 11:02:59 +0200 Subject: [PATCH] Updated guild function --- src/utils/HypixelFunctions/account.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/utils/HypixelFunctions/account.ts b/src/utils/HypixelFunctions/account.ts index b9dee97..f6c1457 100644 --- a/src/utils/HypixelFunctions/account.ts +++ b/src/utils/HypixelFunctions/account.ts @@ -63,9 +63,7 @@ async function getPlayer(uuid: string): Promise { } } -async function getGuild(query: string, type?: GuildQueryType): Promise { - const reqType = type ? type : "player" - +async function getGuild(query: string, reqType: GuildQueryType = "player"): Promise { try { const req = await axios.get(guild, { params: {