1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-09-19 00:19:59 +00:00
arikawa/gateway
diamondburned 83cf774073
gateway: Separate Ready to ReadyEventExtras
This commit separates the undocumented fields of Ready to
ReadyEventExtras. Realistically, this is never an issue for bots, but it
might cripple non-bot users when Discord makes breaking changes to the
API.

This change allows Ready to still be unmarshaled even when the
undocumented fields cannot be unmarshaled. It also adds a new json.Raw
field that allows the whole Ready event to be unmarshaled differently.

This new ReadyEventExtras is also no longer marshaled as part of Ready.
Instead, none of its field will be present. Although this is a breaking
change, it solely concerns non-bot APIs, so it's acceptable.
2022-10-03 23:18:43 -07:00
..
event_methods.go discord: Support guild Scheduled Events (#319) 2022-04-02 22:36:45 -07:00
events.go gateway: Separate Ready to ReadyEventExtras 2022-10-03 23:18:43 -07:00
events_test.go gateway: Fix RequestGuildMembersCommand.GuildIDs 2022-10-03 04:48:50 -07:00
gateway.go gateway: Do not resume after 15m 2022-09-13 19:50:42 -07:00
gateway_example_test.go gateway: Refactor for a better concurrent API 2021-12-14 13:49:34 -08:00
gateway_test.go gateway: Removed unused test functions 2022-10-03 04:47:04 -07:00
identify.go gateway: Refactor for a better concurrent API 2021-12-14 13:49:34 -08:00
intents.go discord: Support guild Scheduled Events (#319) 2022-04-02 22:36:45 -07:00