Merge pull request #2 from warengroup/new-changes

Changes
This commit is contained in:
Christer Warén 2020-03-08 17:43:09 +02:00 committed by GitHub
commit 9070445ad5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ module.exports = {
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!');
} 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!');
const permissions = voiceChannel.permissionsFor(msg.client.user);

View File

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