From aff386402fd4b24f4dd3b176d13b3e1d4b5b9035 Mon Sep 17 00:00:00 2001 From: mavolin <48887425+mavolin@users.noreply.github.com> Date: Tue, 3 Nov 2020 19:14:10 +0100 Subject: [PATCH] Gateway: remove GuildSubscriptions from IdentifyData With the requirement of intents on Gateway v8, the guild_subscriptions field has no effect, and is therefore removed --- gateway/identify.go | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/gateway/identify.go b/gateway/identify.go index d8b1dc2..1304a89 100644 --- a/gateway/identify.go +++ b/gateway/identify.go @@ -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, }) }