DiscordGo v0.23.0
Hi all! This is a big one.
API Version 8
The largest change for this version: the library now uses API version 8! Given the breaking changes in the API, there will be some breaking changes in this version:
- Intents are now mandatory. The library continues to default to enabling all non-privileged intents, but it is no longer possible to disable intents entirely like it was in v6. Consequently, the
Intents
field in theIdentify
struct is no longer a pointer, and the use ofMakeIntent
is no longer required. - The
Game
struct is no more, andUpdateStatus
was changed toUpdateGameStatus
to better reflect the API structures. The previous uses ofGame
can now be encompassed inActivity
. - Presences and presence updates no longer contain information about nicknames and roles; these are now sent exclusively by guild member updates.
- Permissions are now represented by
int64
rather thanint
throughout the library, as although there are no permissions currently above 32 bits, Discord explicitly notes that they expect to add additional permissions in the future. - Permission overwrite types now have constants in the library, rather than requiring a string value.
There will probably be issues that are discovered with the API version change. As always, please feel free to file an issue if any come up!
Additional Changes
- Support for news channels #800
- Support for user public flags #801
- Support for guild member muting and deafening #804
- Support for querying old voice state information in updates #833
- Add application ID to webhooks #838
- Support for replies #842
- Support for fetching guild bans #848
- Webhook interaction request verification #855
- Add pending field for members #863
Special Thanks To
- https://github.com/adityaxdiwakar
- https://github.com/zekroTJA
- https://github.com/jonathroth
- https://github.com/nickmcski
- https://github.com/Zabqer
- https://github.com/LagSwitchedVirginity
- https://github.com/qaisjp
- https://github.com/FedorLap2006
- https://github.com/bsdlp
- https://github.com/denverquane
- https://github.com/CinePlays