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, }, }, ],