Updated stop.js

This commit is contained in:
Christer Warén 2021-09-02 14:40:55 +03:00
parent 45bd690c05
commit da71137f68

View File

@ -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);