diff options
| author | 8cy <[email protected]> | 2020-04-12 23:58:18 -0700 |
|---|---|---|
| committer | 8cy <[email protected]> | 2020-04-12 23:58:18 -0700 |
| commit | affb0f0c04ffc81c2b413cb12a3f51d3386f0df0 (patch) | |
| tree | 295c1261ac473fa8bc164846b9032de4d837ea69 | |
| parent | formatting, v3.0.4 (diff) | |
| download | s5nical-legacy-pre-ts.tar.xz s5nical-legacy-pre-ts.zip | |
fix join, v3.0.5legacy-pre-ts
| -rw-r--r-- | commands/voice/join.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/commands/voice/join.js b/commands/voice/join.js index 12c6e60..fda2516 100644 --- a/commands/voice/join.js +++ b/commands/voice/join.js @@ -17,10 +17,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 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()); |