Skip to content
This repository has been archived by the owner on Jul 13, 2024. It is now read-only.

Commit

Permalink
fix: disconnection when someone moves to afk (#233)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuuahp authored Aug 27, 2023
1 parent 95ab6a8 commit 0cccc18
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/com/jaoafa/jdavcspeaker/Event/AutoMove.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,12 @@ void runJoined(MoveInfo info) {

if (isAfkChannel(newChannel)) {
// VCに残ったユーザーが全員Bot、または誰もいなくなった
boolean existsUser = newChannel
boolean existsUser = oldChannel
.getMembers()
.stream()
.anyMatch(member -> !member.getUser().isBot()); // Bot以外がいるかどうか
if (!existsUser) {

if (existsUser) {
return;
}

Expand Down

0 comments on commit 0cccc18

Please sign in to comment.