mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-22 20:23:16 +00:00
Updated play function
This commit is contained in:
parent
894a1d82f5
commit
a9857cb34b
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user