From 06379c87320f463d58e5d05b5a9a2b6c05d9d429 Mon Sep 17 00:00:00 2001 From: FelixLusseau Date: Sun, 1 Oct 2023 01:41:12 +0200 Subject: [PATCH] scheduled message correction for ffattacks --- commands/ffattacks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/ffattacks.js b/commands/ffattacks.js index ab5cb54..0a8c313 100644 --- a/commands/ffattacks.js +++ b/commands/ffattacks.js @@ -279,7 +279,7 @@ async function ffattacks(bot, api, interaction, pingBool, guildId, channel, clan } } - if (text != null) { // If the text option is enabled + if (text != null || (pingBool && interaction == null)) { // If the text option is enabled // If the interaction is not null, edit the reply deferred before if (interaction != null) { interaction.editReply({ embeds: [attacksEmbed] });