forked from pothtonswer/discordmuffin
Refactor
This commit is contained in:
parent
757302eb78
commit
349da37386
2 changed files with 36 additions and 1 deletions
|
@ -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 {
|
||||
|
|
35
structs.go
35
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
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue