diff --git a/discord.go b/discord.go index 1944c15..789ca68 100644 --- a/discord.go +++ b/discord.go @@ -74,7 +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 + s.Identify.Intents = IntentsAllWithoutPrivileged // If no arguments are passed return the empty Session interface. if args == nil { diff --git a/structs.go b/structs.go index 43b39b5..944f899 100644 --- a/structs.go +++ b/structs.go @@ -1103,3 +1103,38 @@ const ( 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 +)