Updated imports and formating
Signed-off-by: Taken <taken@mairimashita.org>
This commit is contained in:
@@ -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,
|
||||
},
|
||||
},
|
||||
],
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -205,4 +205,4 @@ export default async function guildMember(
|
||||
},
|
||||
],
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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(
|
||||
},
|
||||
],
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user