Small tweaks to embed prefs
This commit is contained in:
@@ -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: [
|
||||
{
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
},
|
||||
],
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user