Skip to content

Commit

Permalink
Disable voice on reload as well
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobwgillespie committed Feb 21, 2016
1 parent 8751491 commit 424d39e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 424d39e

Please sign in to comment.