From 3043f92dcbe78a6675ca351a3c82d6b559f449b8 Mon Sep 17 00:00:00 2001 From: Taken Date: Sun, 7 Jan 2024 22:52:07 +0100 Subject: [PATCH] Small tweaks to embed prefs --- src/commands/check.ts | 7 +------ src/commands/forceupdate.ts | 4 +--- src/commands/update.ts | 4 +--- 3 files changed, 3 insertions(+), 12 deletions(-) diff --git a/src/commands/check.ts b/src/commands/check.ts index 59080f2..fc509f5 100644 --- a/src/commands/check.ts +++ b/src/commands/check.ts @@ -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: [ { diff --git a/src/commands/forceupdate.ts b/src/commands/forceupdate.ts index 67d6a9b..8addaf3 100644 --- a/src/commands/forceupdate.ts +++ b/src/commands/forceupdate.ts @@ -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, }, }, ], diff --git a/src/commands/update.ts b/src/commands/update.ts index 7828bfe..95908ae 100644 --- a/src/commands/update.ts +++ b/src/commands/update.ts @@ -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, }, }, ],