Łukasz Horonziak vor 4 Jahren
Ursprung
Commit
757302eb78
2 geänderte Dateien mit 2 neuen und 0 gelöschten Zeilen
  1. 1 0
      discord.go
  2. 1 0
      structs.go

+ 1 - 0
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 {

+ 1 - 0
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