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

Commit

Permalink
feat: Botについては別鯖移動先検出をしないようにする
Browse files Browse the repository at this point in the history
  • Loading branch information
book000 committed May 7, 2023
1 parent 38c0da6 commit 5c61e30
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ public void onGuildVoiceUpdate(@NotNull GuildVoiceUpdateEvent event) {
);
}

if (user.isBot()) {
return; // Botは別鯖の移動検知をしない
}

new Thread(() -> {
try {
JSONArray destinationChannels = getDestinationChannels(user.getId());
Expand Down

0 comments on commit 5c61e30

Please sign in to comment.