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