Apply more fields to message in message update
In case update was handled before create
This commit is contained in:
parent
bbbc21db6b
commit
f01c5a3344
1 changed files with 6 additions and 0 deletions
6
state.go
6
state.go
|
@ -511,6 +511,12 @@ func (s *State) MessageAdd(message *Message) error {
|
|||
if message.Attachments != nil {
|
||||
m.Attachments = message.Attachments
|
||||
}
|
||||
if message.Timestamp != "" {
|
||||
m.Timestamp = message.Timestamp
|
||||
}
|
||||
if message.Author != nil {
|
||||
m.Author = message.Author
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue