Skip to content

Commit

Permalink
Fix the channel leaving thing
Browse files Browse the repository at this point in the history
  • Loading branch information
duncte123 committed Feb 18, 2018
1 parent a08f720 commit 8c9b7c0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/ml/duncte123/skybot/BotListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -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)");
}
Expand Down

0 comments on commit 8c9b7c0

Please sign in to comment.