From da71137f68ce4e8244301895e8e69290f1e00c21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Thu, 2 Sep 2021 14:40:55 +0300 Subject: [PATCH] Updated stop.js --- src/client/commands/stop.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/client/commands/stop.js b/src/client/commands/stop.js index b2e8641..e0d1779 100644 --- a/src/client/commands/stop.js +++ b/src/client/commands/stop.js @@ -21,13 +21,13 @@ module.exports = { .setFooter(client.messages.footerText, "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, '')); if(!radio.message){ - radio.message = await radio.textChannel.send({ embeds: [embed], components: [] }); + radio.message = radio.textChannel.send({ embeds: [embed], components: [] }); } else { radio.message.edit({ embeds: [embed], components: [] }); } - setTimeout(function() { - radio.message.delete(); + setTimeout(async function() { + await radio.message?.delete(); }, 5000); client.radio.delete(interaction.guild.id);