This commit is contained in:
Łukasz Horonziak 2020-04-19 11:11:41 +02:00
parent 757302eb78
commit 349da37386
2 changed files with 36 additions and 1 deletions

View file

@ -74,7 +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 s.Identify.Intents = IntentsAllWithoutPrivileged
// 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 {

View file

@ -1103,3 +1103,38 @@ const (
ErrCodeReactionBlocked = 90001 ErrCodeReactionBlocked = 90001
) )
const (
IntentsGuilds = 1 << iota
IntentsGuildMembers
IntentsGuildBans
IntentsGuildEmojis
IntentsGuildIntegrations
IntentsGuildWebhooks
IntentsGuildInvites
IntentsGuildVoiceStates
IntentsGuildPresences
IntentsGuildMessages
IntentsGuildMessageReactions
IntentsGuildMessageTyping
IntentsDirectMessagesMessages
IntentsDirectMessageReaction
IntentsDirectMessageTyping
IntentsAllWithoutPrivileged = IntentsGuilds |
IntentsGuildBans |
IntentsGuildEmojis |
IntentsGuildIntegrations |
IntentsGuildWebhooks |
IntentsGuildInvites |
IntentsGuildVoiceStates |
IntentsGuildMessages |
IntentsGuildMessageReactions |
IntentsGuildMessageTyping |
IntentsDirectMessagesMessages |
IntentsDirectMessageReaction |
IntentsDirectMessageTyping
IntentsAll = IntentsAllWithoutPrivileged |
IntentsGuildMembers |
IntentsGuildPresences
)