Closed gt22 closed 7 years ago
There is a fix coming for this soon.
This is already fixed, and a NumberFormatException cannot be thrown: https://github.com/JDA-Applications/JDA-Utilities/blob/master/src/main/java/com/jagrosh/jdautilities/commandclient/CommandEvent.java#L311-L319 Make sure you're on the latest version.
I actually can't get 1.1
version, gradle can't find it.
build.gradle:
apply plugin: 'java'
repositories {
jcenter()
mavenCentral()
}
dependencies {
compile 'com.jagrosh:JDA-Utilities:1.1'
compile 'net.dv8tion:JDA:3.0.0_191'
compile 'com.google.code.gson:gson:2.8.0'
compile 'org.jooq:jool:0.9.12'
}
(1.0 version with me.jagrosh...
works fine)
repositories {
jcenter()
maven { url 'https://dl.bintray.com/jagrosh/maven/' }
}
dependencies {
compile 'net.dv8tion:JDA:3.0.0_191'
compile 'com.jagrosh:JDA-Utilities:1.1'
}
Try this @gt22.
@TheMonitorLizard, thanks. I think this repo should be included in readme?
Yes, I'll make sure to include it in my PR once version 1.2 comes out 😄
If unicode emoji passed in
CommandClientBuilder#setEmojis
it will causeNumberFormatException
, becouse when reactingCommandEvent
tries to useJDA#getEmoteById
, which throwNFE
when givem string can't be parsed. Check inCommandEvent
is fornull
return, andtry/catch
only forPermissionException
soNFE
catched in JDA only.