Ver Fonte

Apply more fields to message in message update

In case update was handled before create
jonas747 há 8 anos atrás
pai
commit
f01c5a3344
1 ficheiros alterados com 6 adições e 0 exclusões
  1. 6 0
      state.go

+ 6 - 0
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
 		}