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

@@ -1,10 +1,4 @@
import {
getUUID,
getIGN,
getPlayer,
getGuild,
guildLevel,
} from "utils/Hypixel"
import { getUUID, getIGN, getPlayer, getGuild, guildLevel } from "utils/Hypixel"
import { color, devMessage } from "config/options.json"
import { ChatInputCommandInteraction } from "discord.js"
import { GuildData } from "interfaces"
@@ -234,11 +228,9 @@ export default async function guildInfo(
color: embedColor,
footer: {
text: interaction.guild!.name + " | " + devMessage,
icon_url:
interaction.guild!.iconURL() ||
undefined,
icon_url: interaction.guild!.iconURL() || undefined,
},
},
],
})
}
}

View File

@@ -205,4 +205,4 @@ export default async function guildMember(
},
],
})
}
}

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(
},
],
})
}
}