Updated guild function
This commit is contained in:
@@ -63,9 +63,7 @@ async function getPlayer(uuid: string): Promise<IPlayerData | null> {
|
||||
}
|
||||
}
|
||||
|
||||
async function getGuild(query: string, type?: GuildQueryType): Promise<IGuildData | null> {
|
||||
const reqType = type ? type : "player"
|
||||
|
||||
async function getGuild(query: string, reqType: GuildQueryType = "player"): Promise<IGuildData | null> {
|
||||
try {
|
||||
const req = await axios.get<IGuild>(guild, {
|
||||
params: {
|
||||
|
||||
Reference in New Issue
Block a user