Small tweaks to embed prefs

This commit is contained in:
2024-01-07 22:52:07 +01:00
parent 9ba4b3a144
commit 3043f92dcb
3 changed files with 3 additions and 12 deletions

View File

@@ -41,14 +41,9 @@ export = {
async execute(interaction) {
await interaction.deferReply({})
const ign = interaction.options.getString("ign")
const ign = interaction.options.getString("ign")!
const embedColor = Number(color.replace("#", "0x"))
if (!ign) {
await interaction.editReply("Please provide a player's IGN.")
return
}
await interaction.editReply({
embeds: [
{

View File

@@ -45,9 +45,7 @@ export = {
color: embedColor,
footer: {
text: interaction.guild!.name + " | " + devMessage,
icon_url: interaction.guild!.iconURL({
forceStatic: false,
})!,
icon_url: interaction.guild!.iconURL({ forceStatic: false, }) || undefined,
},
},
],

View File

@@ -33,9 +33,7 @@ export = {
color: embedColor,
footer: {
text: interaction.guild!.name + " | " + devMessage,
icon_url: interaction.guild!.iconURL({
forceStatic: false,
})!,
icon_url: interaction.guild!.iconURL({ forceStatic: false, }) || undefined,
},
},
],