Fixed anthoer bug

This commit is contained in:
2023-11-26 16:29:57 +01:00
parent 15074064ab
commit 2d0214c186

View File

@@ -87,6 +87,13 @@ module.exports = {
}
const statsFields = []
if (!player.stats) {
statsFields.push({
name: "<a:_warning:1178350183457751100> This player never played any games.",
value: "**➺ Stats:** `None`"
})
} else {
if (player.stats.Bedwars) {
const hsbwexp = player.stats.Bedwars.Experience || 0
const hsbwstars = bedwarsLevel(hsbwexp)
@@ -193,9 +200,10 @@ module.exports = {
value: "**➺ Stats:** `None`"
})
}
}
// network level
const hypixelExp = player.networkExp
const hypixelExp = player.networkExp || 0
const level = hypixelLevel(hypixelExp)
await interaction.editReply({