Updated play function

This commit is contained in:
Christer Warén 2021-09-06 19:09:34 +03:00
parent 894a1d82f5
commit a9857cb34b

View File

@ -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);