mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2026-10-13 22:04:27 +00:00
Update play function
This commit is contained in:
1 parent
3654dd58ba
commit
bf7336ae8d
1 file changed
+2
-2
@@ -57,13 +57,13 @@ module.exports = async function play(client, interaction, guild, station) {
|
||||
);
|
||||
|
||||
if(!radio.message){
|
||||
radio.message = await radio.textChannel.send({ embeds: [embed], components: [buttons] });
|
||||
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] });
|
||||
radio.message = await radio.textChannel?.send({ embeds: [embed], components: [buttons] });
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user