mirror of
https://github.com/diamondburned/arikawa.git
synced 2025-01-08 04:57:31 +00:00
83cf774073
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. |
||
---|---|---|
.. | ||
event_methods.go | ||
events.go | ||
events_test.go | ||
gateway.go | ||
gateway_example_test.go | ||
gateway_test.go | ||
identify.go | ||
intents.go |