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:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user