Added dynamic embeds

This commit is contained in:
2023-12-03 18:44:01 +01:00
parent cf650e392a
commit 962a76fbea
8 changed files with 189 additions and 14 deletions

View File

@@ -14,6 +14,13 @@ async function beast(interaction) {
return
}
await interaction.editReply({
embeds: [{
description: "Fetching your uuid...",
color: embedColor
}]
})
const uuid = await getUUID(ign)
if (!uuid) {
interaction.editReply({
@@ -24,6 +31,13 @@ async function beast(interaction) {
return
}
await interaction.editReply({
embeds: [{
description: "Fetching your player data...",
color: embedColor
}]
})
const head = await getHeadURL(ign)
const player = await getPlayer(uuid)
if (!player) {
@@ -52,6 +66,13 @@ async function beast(interaction) {
rank = "[MVP++] "
}
await interaction.editReply({
embeds: [{
description: "Fetching your guild data...",
color: embedColor
}]
})
const guild = await getGuild(uuid)
let guildName = ""
if (!guild) {