mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2026-11-03 13:15:01 +00:00
Updated play function
This commit is contained in:
1 parent
894a1d82f5
commit
a9857cb34b
1 file changed
+4
-1
@@ -27,7 +27,10 @@ module.exports = async function play(interaction, guild, client, url) {
|
|||||||
radio.connection?.destroy();
|
radio.connection?.destroy();
|
||||||
radio.audioPlayer?.stop();
|
radio.audioPlayer?.stop();
|
||||||
client.radio.delete(guild.id);
|
client.radio.delete(guild.id);
|
||||||
return interaction.reply(client.messages.errorPlaying);
|
return interaction.reply({
|
||||||
|
content: client.messages.errorPlaying,
|
||||||
|
ephemeral: true
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
message.nowplayingDescription = client.messages.nowplayingDescription.replace("%radio.station.name%", radio.station.name);
|
message.nowplayingDescription = client.messages.nowplayingDescription.replace("%radio.station.name%", radio.station.name);
|
||||||
|
|||||||
Reference in new issue
Block a user