Closed HeyBanditoz closed 2 years ago
Try the latest 2.0-SNAPSHOT
? Changed ints to longs but might be a breaking change so it'll get shoved into the snapshots for now.
It seems to have worked, thanks!
Can't really test the rest, just playing around with OAuth2 for the first time.
On 2/2/2022 01:30, Olivia wrote:
Try the latest 2.0-SNAPSHOT? Changed ints to longs but might be a breaking change so it'll get shoved into the snapshots for now.
— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you authored the thread.Message ID: @.***>
Coolio, lemme know if you run into anything else 😄
Issue Checklist
Affected Modules
OAuth2
Description
When I call
Session#getGuilds
, I get this error:I think a fix would just be to change line 191 from
obj.getInt("permissions")));
toobj.getLong("permissions")));
as it returns a value of556302458433
https://github.com/Chew/JDA-Chewtils/blob/3afd8c83d5c1de7c2b0808253ce6c9c7fd0ae196/oauth2/src/main/java/com/jagrosh/jdautilities/oauth2/entities/impl/OAuth2ClientImpl.java#L177-L195