From 9019741146c8292bade89a6681535b177b88751e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Sat, 11 Sep 2021 18:27:12 +0300 Subject: [PATCH] Update stop command --- src/client/commands/stop.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/client/commands/stop.js b/src/client/commands/stop.js index fff1748..84674fc 100644 --- a/src/client/commands/stop.js +++ b/src/client/commands/stop.js @@ -22,7 +22,11 @@ module.exports = { if(!radio.message){ radio.message = radio.textChannel.send({ embeds: [embed], components: [] }); } else { - radio.message.edit({ embeds: [embed], components: [] }); + if(radio.textChannel.id == radio.message.channel.id){ + radio.message.edit({ embeds: [embed], components: [] }); + } else { + radio.message?.delete(); + } } setTimeout(async function() {