Updated subcommands embed prefs
This commit is contained in:
@@ -40,9 +40,7 @@ export default async function ban(
|
||||
" has been banned from counting",
|
||||
color: embedColor,
|
||||
footer: {
|
||||
icon_url: interaction.guild!.iconURL({
|
||||
forceStatic: false,
|
||||
})!,
|
||||
icon_url: interaction.guild!.iconURL({ forceStatic: false, }) || undefined,
|
||||
text: interaction.guild!.name + " | " + devMessage,
|
||||
},
|
||||
},
|
||||
|
||||
@@ -35,7 +35,7 @@ export default async function setup(interaction: ChatInputCommandInteraction): P
|
||||
description: "Counting channel has been set to " + channelMention(channel.id),
|
||||
color: embedColor,
|
||||
footer: {
|
||||
icon_url: interaction.guild!.iconURL({ forceStatic: false })!,
|
||||
icon_url: interaction.guild!.iconURL({ forceStatic: false }) || undefined,
|
||||
text: interaction.guild!.name + " | " + devMessage
|
||||
}
|
||||
}]
|
||||
|
||||
@@ -40,9 +40,7 @@ export default async function ban(
|
||||
" has been unbanned from counting",
|
||||
color: embedColor,
|
||||
footer: {
|
||||
icon_url: interaction.guild!.iconURL({
|
||||
forceStatic: false,
|
||||
})!,
|
||||
icon_url: interaction.guild!.iconURL({ forceStatic: false, }) || undefined,
|
||||
text: interaction.guild!.name + " | " + devMessage,
|
||||
},
|
||||
},
|
||||
|
||||
@@ -204,9 +204,7 @@ export default async function guildMember(
|
||||
],
|
||||
footer: {
|
||||
text: interaction.guild!.name + " | " + devMessage,
|
||||
icon_url: interaction.guild!.iconURL({
|
||||
forceStatic: false,
|
||||
})!,
|
||||
icon_url: interaction.guild!.iconURL({ forceStatic: false, }) || undefined,
|
||||
},
|
||||
},
|
||||
],
|
||||
|
||||
@@ -286,9 +286,7 @@ export default async function guildTop(
|
||||
" | " +
|
||||
devMessage +
|
||||
cacheStatusText,
|
||||
icon_url: interaction.guild!.iconURL({
|
||||
forceStatic: false,
|
||||
})!,
|
||||
icon_url: interaction.guild!.iconURL({ forceStatic: false, }) || undefined,
|
||||
},
|
||||
},
|
||||
],
|
||||
|
||||
@@ -261,13 +261,6 @@ export default async function beast(
|
||||
const hypixelExp = player.networkExp || 0
|
||||
const level = hypixelLevel(hypixelExp)
|
||||
|
||||
const footerText = interaction.guild
|
||||
? interaction.guild.name
|
||||
: interaction.user.username
|
||||
const footerIcon = interaction.guild
|
||||
? interaction.guild.iconURL({ forceStatic: false })
|
||||
: interaction.user.avatarURL({ forceStatic: false })
|
||||
|
||||
await interaction.editReply({
|
||||
embeds: [
|
||||
{
|
||||
@@ -284,8 +277,8 @@ export default async function beast(
|
||||
url: head!,
|
||||
},
|
||||
footer: {
|
||||
text: footerText + " | " + devMessage,
|
||||
icon_url: footerIcon!,
|
||||
text: interaction.guild!.name + " | " + devMessage,
|
||||
icon_url: interaction.guild!.iconURL({ forceStatic: false }) || undefined,
|
||||
},
|
||||
fields: statsFields,
|
||||
},
|
||||
|
||||
@@ -46,12 +46,6 @@ export default async function help(
|
||||
}
|
||||
|
||||
const embedColor = Number(color.replace("#", "0x"))
|
||||
const footerText = interaction.guild
|
||||
? interaction.guild.name
|
||||
: interaction.user.username
|
||||
const footerIcon = interaction.guild
|
||||
? interaction.guild.iconURL({ forceStatic: false })
|
||||
: interaction.user.avatarURL({ forceStatic: false })
|
||||
|
||||
await interaction.editReply({
|
||||
embeds: [
|
||||
@@ -61,11 +55,11 @@ export default async function help(
|
||||
fields: commandList,
|
||||
color: embedColor,
|
||||
thumbnail: {
|
||||
url: interaction.guild!.iconURL({ forceStatic: false })!,
|
||||
url: interaction.guild!.iconURL({ forceStatic: false }) || "",
|
||||
},
|
||||
footer: {
|
||||
icon_url: footerIcon!,
|
||||
text: footerText + " | " + devMessage,
|
||||
icon_url: interaction.guild!.iconURL({ forceStatic: false }) || undefined,
|
||||
text: interaction.guild?.name + " | " + devMessage,
|
||||
},
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user