diff --git a/bolt.go b/bolt.go index f1a032c..7cc2886 100644 --- a/bolt.go +++ b/bolt.go @@ -184,7 +184,7 @@ func (b *bolt) messageHandler(s *dg.Session, msg *dg.MessageCreate) { res, err := run.Payload(Message{ Author: msg.Author.Username, Words: words, - Message: msg.Content, + Content: msg.Content, Channel: channel.Name, Server: server.Name, }) diff --git a/command.go b/command.go index d6f39d2..2e1a6c0 100644 --- a/command.go +++ b/command.go @@ -18,7 +18,7 @@ type Payload func(msg Message) (res string, err error) type Message struct { Author string //username of message author Words []string //words from message split on whitespace - Message string //entire message content + Content string //entire message content Channel string //channel message was sent in Server string //guild message was sent in }