better naming standards
This commit is contained in:
parent
cc77adeadc
commit
5b32d09a27
2
bolt.go
2
bolt.go
@ -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,
|
||||||
})
|
})
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user