Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
113fcbf2d1
|
1
bolt.go
1
bolt.go
@@ -193,6 +193,7 @@ func (b *bolt) handleCommand(msg *dg.MessageCreate, s *dg.Session, server *dg.Gu
|
|||||||
//run command payload
|
//run command payload
|
||||||
res, err := run.Payload(Message{
|
res, err := run.Payload(Message{
|
||||||
Author: msg.Author.Username,
|
Author: msg.Author.Username,
|
||||||
|
ID: msg.Author.ID,
|
||||||
Words: words,
|
Words: words,
|
||||||
Content: msg.Content,
|
Content: msg.Content,
|
||||||
Channel: channel.Name,
|
Channel: channel.Name,
|
||||||
|
@@ -17,6 +17,7 @@ type Payload func(msg Message) (string, error)
|
|||||||
// message information passed to payload function
|
// message information passed to payload function
|
||||||
type Message struct {
|
type Message struct {
|
||||||
Author string //username of message author
|
Author string //username of message author
|
||||||
|
ID string //discord ID of message author
|
||||||
Words []string //words from message split on whitespace
|
Words []string //words from message split on whitespace
|
||||||
Content string //entire message content
|
Content string //entire message content
|
||||||
Channel string //message channel
|
Channel string //message channel
|
||||||
|
Reference in New Issue
Block a user