From 32b3ced20936be899b9340cf59edf61da2593139 Mon Sep 17 00:00:00 2001 From: ChomeNS <95471003+ChomeNS@users.noreply.github.com> Date: Sat, 24 Jun 2023 16:29:11 +0700 Subject: [PATCH] fix the host problem !! --- .../chayapak/chomens_bot/plugins/VoiceChatPlugin.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/VoiceChatPlugin.java b/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/VoiceChatPlugin.java index 2f82f47..6dc74a9 100644 --- a/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/VoiceChatPlugin.java +++ b/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/VoiceChatPlugin.java @@ -66,10 +66,10 @@ public class VoiceChatPlugin extends Bot.Listener { final SecretPacket secretPacket = new SecretPacket().fromBytes(buf); - initializationData = new InitializationData(bot.options().host(), secretPacket); + initializationData = new InitializationData(bot.session().getHost(), secretPacket); try { - final InetAddress address = InetAddress.getByName(bot.options().host()); + final InetAddress address = InetAddress.getByName(bot.session().getHost()); socketAddress = new InetSocketAddress(address, initializationData.serverPort()); } catch (UnknownHostException e) { throw new RuntimeException(e);