Skip to content

Commit

Permalink
Remove GuildSubscriptions field from Identify struct (#992)
Browse files Browse the repository at this point in the history
Co-authored-by: rigormorrtiss <rigormorrtiss@gmail.com>
  • Loading branch information
FedorLap2006 and rigormorrtiss committed Mar 23, 2022
1 parent 12edb3b commit 0413c18
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
1 change: 0 additions & 1 deletion discord.go
Expand Up @@ -49,7 +49,6 @@ func New(token string) (s *Session, err error) {
// These can be modified prior to calling Open()
s.Identify.Compress = true
s.Identify.LargeThreshold = 250
s.Identify.GuildSubscriptions = true
s.Identify.Properties.OS = runtime.GOOS
s.Identify.Properties.Browser = "DiscordGo v" + VERSION
s.Identify.Intents = IntentsAllWithoutPrivileged
Expand Down
15 changes: 7 additions & 8 deletions structs.go
Expand Up @@ -1695,14 +1695,13 @@ const (
// Identify is sent during initial handshake with the discord gateway.
// https://discord.com/developers/docs/topics/gateway#identify
type Identify struct {
Token string `json:"token"`
Properties IdentifyProperties `json:"properties"`
Compress bool `json:"compress"`
LargeThreshold int `json:"large_threshold"`
Shard *[2]int `json:"shard,omitempty"`
Presence GatewayStatusUpdate `json:"presence,omitempty"`
GuildSubscriptions bool `json:"guild_subscriptions"`
Intents Intent `json:"intents"`
Token string `json:"token"`
Properties IdentifyProperties `json:"properties"`
Compress bool `json:"compress"`
LargeThreshold int `json:"large_threshold"`
Shard *[2]int `json:"shard,omitempty"`
Presence GatewayStatusUpdate `json:"presence,omitempty"`
Intents Intent `json:"intents"`
}

// IdentifyProperties contains the "properties" portion of an Identify packet
Expand Down

0 comments on commit 0413c18

Please sign in to comment.