This commit is contained in:
Christer Warén 2020-03-08 17:42:27 +02:00
parent 38fcc18e3d
commit 692c047180
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ module.exports = {
if (!radio) { if (!radio) {
if (!msg.member.voice.channel) return msg.channel.send('<:redx:674263474704220182> I\'m sorry but you need to be in a voice channel to play music!'); if (!msg.member.voice.channel) return msg.channel.send('<:redx:674263474704220182> I\'m sorry but you need to be in a voice channel to play music!');
} else { } else {
if (voiceChannel !== radio.voiceChannel) return msg.channel.send('<:redx:674263474704220182> I\'m sorry but you need to be in the same voice channel as Musix to play music!'); if (voiceChannel !== radio.voiceChannel) return msg.channel.send('<:redx:674263474704220182> I\'m sorry but you need to be in the same voice channel as RadioX to play music!');
} }
if (!args[1]) return msg.channel.send('<:redx:674263474704220182> You need to use a link or search for a song!'); if (!args[1]) return msg.channel.send('<:redx:674263474704220182> You need to use a link or search for a song!');
const permissions = voiceChannel.permissionsFor(msg.client.user); const permissions = voiceChannel.permissionsFor(msg.client.user);

View File

@ -9,7 +9,7 @@ module.exports = {
const radio = client.radio.get(msg.guild.id); const radio = client.radio.get(msg.guild.id);
radio.connection.dispatcher.destroy(); radio.connection.dispatcher.destroy();
radio.voiceChannel.leave(); radio.voiceChannel.leave();
client.radio.delete(guild.id); client.radio.delete(msg.guild.id);
msg.channel.send('<:stop:674685626108477519> Stopped the music!'); msg.channel.send('<:stop:674685626108477519> Stopped the music!');
} }
}; };