updates from testing

This commit is contained in:
2026-02-24 18:19:41 -05:00
parent 6816d7359b
commit 5297a480b8
8 changed files with 153 additions and 110 deletions

View File

@@ -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)
}