Updated guild function

This commit is contained in:
2024-10-16 11:02:59 +02:00
parent e52e2dcb61
commit 523f8115e7

View File

@@ -63,9 +63,7 @@ async function getPlayer(uuid: string): Promise<IPlayerData | null> {
} }
} }
async function getGuild(query: string, type?: GuildQueryType): Promise<IGuildData | null> { async function getGuild(query: string, reqType: GuildQueryType = "player"): Promise<IGuildData | null> {
const reqType = type ? type : "player"
try { try {
const req = await axios.get<IGuild>(guild, { const req = await axios.get<IGuild>(guild, {
params: { params: {