updates from testing
This commit is contained in:
10
option.go
10
option.go
@@ -22,10 +22,11 @@ const (
|
||||
dg.IntentGuildMembers |
|
||||
dg.IntentGuildPresences |
|
||||
dg.IntentMessageContent |
|
||||
dg.IntentsGuildMessages
|
||||
dg.IntentsGuildMessages |
|
||||
dg.IntentGuildMessageReactions
|
||||
|
||||
MessagePermissions Permission = Permission(msgPerms)
|
||||
ReactionPermissions Permission = Permission(dg.IntentGuildMessageReactions)
|
||||
MessagePermissions Permission = Permission(msgPerms)
|
||||
AdminPermissions Permission = 0 //fake
|
||||
//we also need a ModeratorPermissions for banning, kicking, etc.
|
||||
)
|
||||
|
||||
@@ -33,6 +34,9 @@ func WithPermissions(perms ...Permission) Option {
|
||||
return func(b *bolt) {
|
||||
var fullPerms dg.Intent
|
||||
for _, p := range perms {
|
||||
if p == AdminPermissions {
|
||||
b.admin = true
|
||||
}
|
||||
fullPerms |= dg.Intent(p)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user