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

Commit

Permalink
Merge pull request #211 from book000/feat/skip-bot-where-moved
Browse files Browse the repository at this point in the history
feat: Botについては別鯖移動先検出をしないようにする
  • Loading branch information
yuuahp authored May 7, 2023
2 parents 38c0da6 + 5c61e30 commit 5b8af3e
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 5b8af3e

Please sign in to comment.