mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-23 09:53:18 +00:00
Update stop command
This commit is contained in:
parent
095b6ad775
commit
9019741146
@ -22,7 +22,11 @@ module.exports = {
|
|||||||
if(!radio.message){
|
if(!radio.message){
|
||||||
radio.message = radio.textChannel.send({ embeds: [embed], components: [] });
|
radio.message = radio.textChannel.send({ embeds: [embed], components: [] });
|
||||||
} else {
|
} else {
|
||||||
|
if(radio.textChannel.id == radio.message.channel.id){
|
||||||
radio.message.edit({ embeds: [embed], components: [] });
|
radio.message.edit({ embeds: [embed], components: [] });
|
||||||
|
} else {
|
||||||
|
radio.message?.delete();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
setTimeout(async function() {
|
setTimeout(async function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user