1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-12-03 20:32:55 +00:00

Gateway: remove GuildSubscriptions from IdentifyData

With the requirement of intents on Gateway v8, the guild_subscriptions field has no effect, and is therefore removed
This commit is contained in:
mavolin 2020-11-03 19:14:10 +01:00 committed by diamondburned
parent eb118dc1d6
commit aff386402f

View file

@ -37,9 +37,8 @@ type IdentifyData struct {
Token string `json:"token"` Token string `json:"token"`
Properties IdentifyProperties `json:"properties"` Properties IdentifyProperties `json:"properties"`
Compress bool `json:"compress,omitempty"` // true Compress bool `json:"compress,omitempty"` // true
LargeThreshold uint `json:"large_threshold,omitempty"` // 50 LargeThreshold uint `json:"large_threshold,omitempty"` // 50
GuildSubscriptions bool `json:"guild_subscriptions"` // true
Shard *Shard `json:"shard,omitempty"` // [ shard_id, num_shards ] Shard *Shard `json:"shard,omitempty"` // [ shard_id, num_shards ]
@ -69,9 +68,8 @@ func DefaultIdentifier(token string) *Identifier {
Shard: DefaultShard(), Shard: DefaultShard(),
Presence: Presence, Presence: Presence,
Compress: true, Compress: true,
LargeThreshold: 50, LargeThreshold: 50,
GuildSubscriptions: true,
}) })
} }