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: {