Add intents

This commit is contained in:
Łukasz Horonziak 2020-04-18 22:30:51 +02:00
parent 84ad2a796d
commit 757302eb78
2 changed files with 2 additions and 0 deletions

View file

@ -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 {

View file

@ -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