From 424d39e9f9e496609e5d95a192f5eb651a6c02f9 Mon Sep 17 00:00:00 2001 From: Jacob Gillespie Date: Sun, 21 Feb 2016 09:20:40 -0600 Subject: [PATCH] Disable voice on reload as well --- src/main/kotlin/gg/obsidian/discordbridge/DiscordConnection.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/gg/obsidian/discordbridge/DiscordConnection.kt b/src/main/kotlin/gg/obsidian/discordbridge/DiscordConnection.kt index d65d2dd..99f0021 100644 --- a/src/main/kotlin/gg/obsidian/discordbridge/DiscordConnection.kt +++ b/src/main/kotlin/gg/obsidian/discordbridge/DiscordConnection.kt @@ -32,7 +32,7 @@ class DiscordConnection(val plugin: Plugin) : Runnable { fun reconnect() { api.removeEventListener(listener) api.shutdown(false) - api = JDABuilder(plugin.configuration.EMAIL, plugin.configuration.PASSWORD).build() + api = JDABuilder(plugin.configuration.EMAIL, plugin.configuration.PASSWORD).enableVoice(false).buildBlocking() listener = DiscordListener(plugin, api, this) api.addEventListener(listener) }