mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-11-10 05:00:18 +00:00
Update play command
This commit is contained in:
parent
9019741146
commit
1cfa62802f
@ -60,7 +60,12 @@ module.exports = async function play(client, interaction, guild, station) {
|
||||
if(!radio.message){
|
||||
radio.message = await radio.textChannel.send({ embeds: [embed], components: [buttons] });
|
||||
} else {
|
||||
if(radio.textChannel.id == radio.message.channel.id){
|
||||
radio.message.edit({ embeds: [embed], components: [buttons] });
|
||||
} else {
|
||||
radio.message?.delete();
|
||||
radio.message = await radio.textChannel.send({ embeds: [embed], components: [buttons] });
|
||||
}
|
||||
}
|
||||
|
||||
message.play = client.messages.play.replace("%radio.station.name%", radio.station.name);
|
||||
|
Loading…
Reference in New Issue
Block a user