From 5c61e306d74bdf2413506d2b0e090a29db1bcfdb Mon Sep 17 00:00:00 2001 From: "Tomachi [ICHIGO]" Date: Sun, 7 May 2023 22:43:56 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20Bot=E3=81=AB=E3=81=A4=E3=81=84=E3=81=A6?= =?UTF-8?q?=E3=81=AF=E5=88=A5=E9=AF=96=E7=A7=BB=E5=8B=95=E5=85=88=E6=A4=9C?= =?UTF-8?q?=E5=87=BA=E3=82=92=E3=81=97=E3=81=AA=E3=81=84=E3=82=88=E3=81=86?= =?UTF-8?q?=E3=81=AB=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/jaoafa/jdavcspeaker/Event/Event_Disconnect.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/com/jaoafa/jdavcspeaker/Event/Event_Disconnect.java b/src/main/java/com/jaoafa/jdavcspeaker/Event/Event_Disconnect.java index 9d2b695..5e68ffc 100644 --- a/src/main/java/com/jaoafa/jdavcspeaker/Event/Event_Disconnect.java +++ b/src/main/java/com/jaoafa/jdavcspeaker/Event/Event_Disconnect.java @@ -71,6 +71,10 @@ public void onGuildVoiceUpdate(@NotNull GuildVoiceUpdateEvent event) { ); } + if (user.isBot()) { + return; // Botは別鯖の移動検知をしない + } + new Thread(() -> { try { JSONArray destinationChannels = getDestinationChannels(user.getId());