role updates

- bolt will now ensure role is present before exec payload
- readme updates
- removed author struct since roles are checked in bolt framework
This commit is contained in:
2025-06-04 16:47:50 -04:00
parent 381073dc39
commit 6ae84c0d5b
3 changed files with 22 additions and 12 deletions

View File

@@ -16,15 +16,9 @@ type Payload func(msg Message) (res string, err error)
// contains the basic information needed for a message command
type Message struct {
Author Author
Author string //username of message author
Words []string //words from message split on whitespace
Message string //entire message content
Channel string //channel message was sent in
Server string //guild message was sent in
}
// username and roles of message authors
type Author struct {
Username string
Roles []string
}