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> {
|
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: {
|
||||||
|
|||||||
Reference in New Issue
Block a user