Ignore all bots when checking if the bot is alone
This commit is contained in:
1 file changed
+1
-1
@@ -93,6 +93,6 @@ public class AloneInVoiceHandler
|
|||||||
return guild.getAudioManager().getConnectedChannel().getMembers().stream()
|
return guild.getAudioManager().getConnectedChannel().getMembers().stream()
|
||||||
.noneMatch(x ->
|
.noneMatch(x ->
|
||||||
!x.getVoiceState().isDeafened()
|
!x.getVoiceState().isDeafened()
|
||||||
&& x.getIdLong() != bot.getJDA().getSelfUser().getIdLong());
|
&& !x.getUser().isBot());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user