better naming standards

This commit is contained in:
jake 2025-06-04 23:15:00 -04:00
parent cc77adeadc
commit 5b32d09a27
2 changed files with 2 additions and 2 deletions

View File

@ -184,7 +184,7 @@ func (b *bolt) messageHandler(s *dg.Session, msg *dg.MessageCreate) {
res, err := run.Payload(Message{ res, err := run.Payload(Message{
Author: msg.Author.Username, Author: msg.Author.Username,
Words: words, Words: words,
Message: msg.Content, Content: msg.Content,
Channel: channel.Name, Channel: channel.Name,
Server: server.Name, Server: server.Name,
}) })

View File

@ -18,7 +18,7 @@ type Payload func(msg Message) (res string, err error)
type Message struct { type Message struct {
Author string //username of message author Author string //username of message author
Words []string //words from message split on whitespace 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 Channel string //channel message was sent in
Server string //guild message was sent in Server string //guild message was sent in
} }