github bwmarrin/discordgo v0.23.0
DiscordGo v0.23.0

latest releases: v0.28.1, v0.28.0, v0.24.2...
3 years ago

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 the Identify struct is no longer a pointer, and the use of MakeIntent is no longer required.
  • The Game struct is no more, and UpdateStatus was changed to UpdateGameStatus to better reflect the API structures. The previous uses of Game can now be encompassed in Activity.
  • 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 than int 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

Don't miss a new discordgo release

NewReleases is sending notifications on new releases.