From 692c04718076b379d67d7b2f44ff5de0c4512c9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Sun, 8 Mar 2020 17:42:27 +0200 Subject: [PATCH] Changes --- commands/play.js | 2 +- commands/stop.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/play.js b/commands/play.js index 1f712b6..c5dd665 100644 --- a/commands/play.js +++ b/commands/play.js @@ -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); diff --git a/commands/stop.js b/commands/stop.js index f2d3dd6..46b26f4 100644 --- a/commands/stop.js +++ b/commands/stop.js @@ -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!'); } }; \ No newline at end of file