1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-11-30 18:53:30 +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"`
Properties IdentifyProperties `json:"properties"`
Compress bool `json:"compress,omitempty"` // true
LargeThreshold uint `json:"large_threshold,omitempty"` // 50
GuildSubscriptions bool `json:"guild_subscriptions"` // true
Compress bool `json:"compress,omitempty"` // true
LargeThreshold uint `json:"large_threshold,omitempty"` // 50
Shard *Shard `json:"shard,omitempty"` // [ shard_id, num_shards ]
@ -69,9 +68,8 @@ func DefaultIdentifier(token string) *Identifier {
Shard: DefaultShard(),
Presence: Presence,
Compress: true,
LargeThreshold: 50,
GuildSubscriptions: true,
Compress: true,
LargeThreshold: 50,
})
}