forked from pothtonswer/discordmuffin
Add intents
This commit is contained in:
parent
84ad2a796d
commit
757302eb78
2 changed files with 2 additions and 0 deletions
|
@ -74,6 +74,7 @@ func New(args ...interface{}) (s *Session, err error) {
|
||||||
s.Identify.GuildSubscriptions = true
|
s.Identify.GuildSubscriptions = true
|
||||||
s.Identify.Properties.OS = runtime.GOOS
|
s.Identify.Properties.OS = runtime.GOOS
|
||||||
s.Identify.Properties.Browser = "DiscordGo v" + VERSION
|
s.Identify.Properties.Browser = "DiscordGo v" + VERSION
|
||||||
|
s.Identify.Intents = 32767
|
||||||
|
|
||||||
// If no arguments are passed return the empty Session interface.
|
// If no arguments are passed return the empty Session interface.
|
||||||
if args == nil {
|
if args == nil {
|
||||||
|
|
|
@ -959,6 +959,7 @@ type Identify struct {
|
||||||
Shard *[2]int `json:"shard,omitempty"`
|
Shard *[2]int `json:"shard,omitempty"`
|
||||||
Presence GatewayStatusUpdate `json:"presence,omitempty"`
|
Presence GatewayStatusUpdate `json:"presence,omitempty"`
|
||||||
GuildSubscriptions bool `json:"guild_subscriptions"`
|
GuildSubscriptions bool `json:"guild_subscriptions"`
|
||||||
|
Intents int `json:"intents"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// IdentifyProperties contains the "properties" portion of an Identify packet
|
// IdentifyProperties contains the "properties" portion of an Identify packet
|
||||||
|
|
Loading…
Reference in a new issue