K
Kord2y ago
tmpod

Creating channel with permission overwrites yields a "Zero length BigInteger"

I'm creating a guild channel like this:
guild.createCategory("name") {
addRoleOverwrite(guildId) {
denied += Permission.ViewChannel
}
}
guild.createCategory("name") {
addRoleOverwrite(guildId) {
denied += Permission.ViewChannel
}
}
Essentially a category hidden to everyone by default. This was working fine, however it seems that now it's always erroring out with java.lang.NumberFormatException: Zero length BigInteger` The full stack trace follows below:
4 Replies
tmpod
tmpodOP2y ago
tmpod
tmpodOP2y ago
seems like an issue with the permission bitset's serialization I'm on 0.11.0-SNAPSHOT
LustigerLurch
LustigerLurch2y ago
should be fixed in https://github.com/kordlib/kord/pull/864, can you take a look? btw, this bug isn't new. it just showed up now because of a slight change in how the backing DiscordBitSet for a call to Permissions() is created.
tmpod
tmpodOP2y ago
right I'm out until later today, so it will be a bit before I can try it Will let you know how it goes then! It's all good now, thank you! :3

Did you find this page helpful?