Skip to content

Commit

Permalink
v1.6.0
Browse files Browse the repository at this point in the history
- Upgrade Discord API library to 1.3.0_188
  • Loading branch information
jacobwgillespie committed Mar 14, 2016
1 parent 9c5d800 commit 1321f94
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ plugins {
apply plugin: 'kotlin'

group = 'gg.obsidian'
version = '1.5.0'
version = '1.6.0'
description = """Bridge chat between Minecraft and Discord"""
ext.url = 'https://github.com/the-obsidian/DiscordBridge'

Expand All @@ -43,7 +43,7 @@ repositories {
dependencies {
compile group: 'org.spigotmc', name: 'spigot-api', version:'1.8.8-R0.1-SNAPSHOT'
compile group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib', version:'1.0.0-rc-1036'
compile group: 'net.dv8tion', name: 'JDA', version:'1.2.2_165'
compile group: 'net.dv8tion', name: 'JDA', version:'1.3.0_188'
}

processResources {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import net.dv8tion.jda.entities.Guild
import net.dv8tion.jda.entities.TextChannel

class DiscordConnection(val plugin: Plugin) : Runnable {
var api = JDABuilder(plugin.configuration.EMAIL, plugin.configuration.PASSWORD).enableVoice(false).buildBlocking()
var api = JDABuilder(plugin.configuration.EMAIL, plugin.configuration.PASSWORD).setAudioEnabled(false).buildBlocking()
var listener = DiscordListener(plugin, api, this)
var server: Guild? = null
var channel: TextChannel? = null
Expand All @@ -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).enableVoice(false).buildBlocking()
api = JDABuilder(plugin.configuration.EMAIL, plugin.configuration.PASSWORD).setAudioEnabled(false).buildBlocking()
listener = DiscordListener(plugin, api, this)
api.addEventListener(listener)
}
Expand Down

0 comments on commit 1321f94

Please sign in to comment.