Ignore all bots when checking if the bot is alone
This commit is contained in:
@@ -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