Idk why this was an async function
This commit is contained in:
@@ -51,7 +51,7 @@ export default {
|
||||
})
|
||||
|
||||
const ign = (await getIGN(verifyData.uuid)) as string
|
||||
const head = await getHeadURL(ign)
|
||||
const head = getHeadURL(ign)
|
||||
|
||||
await interaction.editReply({
|
||||
embeds: [{
|
||||
|
||||
@@ -53,7 +53,7 @@ export default {
|
||||
}]
|
||||
})
|
||||
|
||||
const head = await getHeadURL(ign)
|
||||
const head = getHeadURL(ign)
|
||||
const player = await getPlayer(uuid)
|
||||
if (!player) {
|
||||
interaction.editReply({
|
||||
|
||||
@@ -61,7 +61,7 @@ export default {
|
||||
return
|
||||
}
|
||||
|
||||
const head = await getHeadURL(ign)
|
||||
const head = getHeadURL(ign)
|
||||
const formattedIgn = await getIGN(uuid)
|
||||
await interaction.editReply({
|
||||
embeds: [{
|
||||
|
||||
@@ -58,7 +58,7 @@ export default {
|
||||
})
|
||||
|
||||
const ign = (await getIGN(verifyData.uuid)) as string
|
||||
const head = await getHeadURL(ign)
|
||||
const head = getHeadURL(ign)
|
||||
|
||||
await interaction.editReply({
|
||||
embeds: [{
|
||||
|
||||
@@ -111,7 +111,7 @@ export default {
|
||||
responseGuildID = guild._id
|
||||
}
|
||||
|
||||
const head = await getHeadURL(ign)
|
||||
const head = getHeadURL(ign)
|
||||
if (responseGuildID === hypixelGuildID) {
|
||||
const GuildMembers = guild!.members
|
||||
const guildRank = GuildMembers.find(member => member.uuid === player.uuid)!.rank
|
||||
|
||||
@@ -32,7 +32,7 @@ export default async function guildMember(interaction: ChatInputCommandInteracti
|
||||
}]
|
||||
})
|
||||
|
||||
const head = await getHeadURL(ign)
|
||||
const head = getHeadURL(ign)
|
||||
const player = await getPlayer(uuid)
|
||||
if (!player) {
|
||||
await interaction.editReply({
|
||||
|
||||
@@ -38,7 +38,7 @@ export default async function beast(interaction: ChatInputCommandInteraction): P
|
||||
}]
|
||||
})
|
||||
|
||||
const head = await getHeadURL(ign)
|
||||
const head = getHeadURL(ign)
|
||||
const player = await getPlayer(uuid)
|
||||
if (!player) {
|
||||
interaction.editReply({
|
||||
|
||||
@@ -58,7 +58,7 @@ export default {
|
||||
}
|
||||
|
||||
const ign = (await getIGN(verifyData.uuid)) as string
|
||||
const head = await getHeadURL(ign)
|
||||
const head = getHeadURL(ign)
|
||||
if (guildID !== hypixelGuildID) {
|
||||
const roles = roleManage("default")
|
||||
await user.roles.remove(roles.rolesToRemove, "User used the update command")
|
||||
|
||||
@@ -40,7 +40,7 @@ export default {
|
||||
|
||||
const formattedUuid = formatUuid(uuid)
|
||||
const newIgn = await getIGN(uuid) as string
|
||||
const head = await getHeadURL(ign)
|
||||
const head = getHeadURL(ign)
|
||||
|
||||
await interaction.editReply({
|
||||
embeds: [{
|
||||
|
||||
@@ -76,7 +76,7 @@ export default {
|
||||
}]
|
||||
})
|
||||
|
||||
const head = await getHeadURL(ign)
|
||||
const head = getHeadURL(ign)
|
||||
const player = (await getPlayer(uuid)) as IPlayerData
|
||||
if (!player) {
|
||||
interaction.editReply({
|
||||
|
||||
@@ -34,7 +34,7 @@ export default {
|
||||
}
|
||||
|
||||
const ign = await getIGN(verifyData.uuid)
|
||||
const head = await getHeadURL(ign!)
|
||||
const head = getHeadURL(ign!)
|
||||
|
||||
await interaction.editReply({
|
||||
embeds: [{
|
||||
|
||||
@@ -40,7 +40,7 @@ export default {
|
||||
}
|
||||
|
||||
const ign = (await getIGN(verifiedUser.uuid)) as string
|
||||
const head = await getHeadURL(ign)
|
||||
const head = getHeadURL(ign)
|
||||
|
||||
await interaction.editReply({
|
||||
embeds: [{
|
||||
|
||||
@@ -31,7 +31,7 @@ export default {
|
||||
}
|
||||
|
||||
const ign = player?.playername || ""
|
||||
const head = await getHeadURL(ign)
|
||||
const head = getHeadURL(ign)
|
||||
const rank2 = player.newPackageRank
|
||||
const monthlyRank = player.monthlyPackageRank
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ export default {
|
||||
}]
|
||||
})
|
||||
|
||||
const head = await getHeadURL(ign)
|
||||
const head = getHeadURL(ign)
|
||||
const player = await getPlayer(uuid)
|
||||
if (!player) {
|
||||
interaction.editReply({
|
||||
|
||||
@@ -85,7 +85,7 @@ async function getGuild(query: string, reqType: GuildQueryType = "player"): Prom
|
||||
}
|
||||
}
|
||||
|
||||
async function getHeadURL(ign: string): Promise<string | null> {
|
||||
function getHeadURL(ign: string): string {
|
||||
return minotar + ign
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user