1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2025-12-08 12:58:17 +00:00

gateway: mark Intents field as omitempty in IdentifyCommand (#486)

This commit is contained in:
Ayyan 2025-09-20 15:17:29 -04:00 committed by GitHub
parent 3a8d18dcb7
commit c3dc0bc002
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -166,7 +166,7 @@ type IdentifyCommand struct {
// For bot accounts, it must not be nil, and
// Gateway.AddIntents(0) can be used if you want to
// specify no intents.
Intents option.Uint `json:"intents"`
Intents option.Uint `json:"intents,omitempty"`
}
// DefaultIdentifyCommand creates a default IdentifyCommand with the given token.