aboutsummaryrefslogtreecommitdiff
path: root/commands/voice/join.js
diff options
context:
space:
mode:
Diffstat (limited to 'commands/voice/join.js')
-rw-r--r--commands/voice/join.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/commands/voice/join.js b/commands/voice/join.js
index 2dc1fdd..cac5e50 100644
--- a/commands/voice/join.js
+++ b/commands/voice/join.js
@@ -14,10 +14,10 @@ module.exports = class JoinVoice extends Command {
});
}
run(msg) {
- if (!msg.guild.voice && msg.member.voice.channel) {
+ if (msg.guild.musicData.isPlaying == false && msg.member.voice.channel) {
msg.member.voice.channel.join();
msg.reply('Succesfully joined your voice channel. ' + emoji.random());
- } else if (msg.guild.voice) {
+ } else if (msg.guild.musicData.isPlaying == false) {
msg.reply('I\'m already in voice channel. ' + emoji.random());
} else if (!msg.member.voice.channel) {
msg.reply('You\'re not in a voice channel. ' + emoji.random());