Error when de-serializing channel with permission-overwrites
I used ChannelClient.updatePermissions to modify the permissions of a channels. This seems to have caused Diskord to reload the channel. When parsing the channel this exception (com.jessecorbett.diskord.api.common.OverwriteType does not contain element with name 'role') is thrown.
This seems to be caused by an inconsistency in the discord-api. The documentation states that the type of an Overwrite is either 0 or 1. However in reality it returned: "type": "role".
I was able to fix this, by adding @JsonNames with "role"/"member" to the instances of OverwriteType(I added the patch as an attachment). I'm not sure if this is the correct way to do it, but it seems to work.