From 8c9b7c0f753dd44687c477bd1285b260b24ea495 Mon Sep 17 00:00:00 2001 From: Duncan Sterken Date: Sun, 18 Feb 2018 15:46:42 +0100 Subject: [PATCH] Fix the channel leaving thing --- src/main/java/ml/duncte123/skybot/BotListener.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/ml/duncte123/skybot/BotListener.java b/src/main/java/ml/duncte123/skybot/BotListener.java index 0771ab2b5..30c059b3f 100644 --- a/src/main/java/ml/duncte123/skybot/BotListener.java +++ b/src/main/java/ml/duncte123/skybot/BotListener.java @@ -384,12 +384,12 @@ public void onGuildVoiceMove(GuildVoiceMoveEvent event) { if(LavalinkManager.ins.isConnected(event.getGuild())) { //if (!event.getVoiceState().getMember().getUser().getId().equals(event.getJDA().getSelfUser().getId())) { if (!event.getChannelLeft().getId().equals( LavalinkManager.ins.getConnectedChannel(event.getGuild()).getId() )) { - return; + channelCheckThing(event.getGuild(), event.getChannelLeft()); + //return; } //channelCheckThing(event.getGuild(), event.getChannelLeft()); - if (event.getGuild().getAudioManager().getConnectedChannel() != null && - !event.getChannelJoined().getId().equals( LavalinkManager.ins.getConnectedChannel(event.getGuild()).getId() )) { + if (!event.getChannelJoined().getId().equals( LavalinkManager.ins.getConnectedChannel(event.getGuild()).getId() )) { return; //System.out.println("Self (this might be buggy)"); }