From 757302eb784d8317c5126b745205a4c712eccb5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Horonziak?= Date: Sat, 18 Apr 2020 22:30:51 +0200 Subject: [PATCH] Add intents --- discord.go | 1 + structs.go | 1 + 2 files changed, 2 insertions(+) diff --git a/discord.go b/discord.go index 74c7887..1944c15 100644 --- a/discord.go +++ b/discord.go @@ -74,6 +74,7 @@ func New(args ...interface{}) (s *Session, err error) { s.Identify.GuildSubscriptions = true s.Identify.Properties.OS = runtime.GOOS s.Identify.Properties.Browser = "DiscordGo v" + VERSION + s.Identify.Intents = 32767 // If no arguments are passed return the empty Session interface. if args == nil { diff --git a/structs.go b/structs.go index 5ce8769..43b39b5 100644 --- a/structs.go +++ b/structs.go @@ -959,6 +959,7 @@ type Identify struct { Shard *[2]int `json:"shard,omitempty"` Presence GatewayStatusUpdate `json:"presence,omitempty"` GuildSubscriptions bool `json:"guild_subscriptions"` + Intents int `json:"intents"` } // IdentifyProperties contains the "properties" portion of an Identify packet