Ignore all bots when checking if the bot is alone

This commit is contained in:
Michaili K 2021-02-09 15:52:41 +01:00
parent 18e142ed88
commit 6527afb88c
No known key found for this signature in database
GPG key ID: BD613494318FEBA0

View file

@ -93,6 +93,6 @@ public class AloneInVoiceHandler
return guild.getAudioManager().getConnectedChannel().getMembers().stream()
.noneMatch(x ->
!x.getVoiceState().isDeafened()
&& x.getIdLong() != bot.getJDA().getSelfUser().getIdLong());
&& !x.getUser().isBot());
}
}