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) { async execute(interaction) {
await interaction.deferReply({}) await interaction.deferReply({})
const ign = interaction.options.getString("ign") const ign = interaction.options.getString("ign")!
const embedColor = Number(color.replace("#", "0x")) const embedColor = Number(color.replace("#", "0x"))
if (!ign) {
await interaction.editReply("Please provide a player's IGN.")
return
}
await interaction.editReply({ await interaction.editReply({
embeds: [ embeds: [
{ {

View File

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

View File

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