Updated imports and formating

Signed-off-by: Taken <taken@mairimashita.org>
This commit is contained in:
2024-01-16 17:05:15 +01:00
parent ee0250ed5e
commit 5661bc66bb
49 changed files with 819 additions and 491 deletions

View File

@@ -177,8 +177,8 @@ export default async function guildTop(
amount = 1
}
type GuildTopData = { ign: string, uuid: string }[]
type NewList = { name: string, value: string; inline: boolean }[]
type GuildTopData = { ign: string; uuid: string }[]
type NewList = { name: string; value: string; inline: boolean }[]
let cacheStatus: boolean
let guildData: GuildTopData = []
@@ -243,7 +243,9 @@ export default async function guildTop(
for (let i = 0; i < amount; i++) {
const gexp = new Intl.NumberFormat("en-US").format(topMembers[i].gexp)
const ign = guildData.find(member => member.uuid === topMembers[i].uuid)?.ign
const ign = guildData.find(
member => member.uuid === topMembers[i].uuid,
)?.ign
const position = i + 1
@@ -291,4 +293,4 @@ export default async function guildTop(
},
],
})
}
}