add retracted

This commit is contained in:
Andrea Maria Piana 2020-07-28 15:07:23 +02:00
parent fcb901daf2
commit eb087a00a4
No known key found for this signature in database
GPG Key ID: AA6CCA6DE0E06424
1 changed files with 2 additions and 0 deletions

View File

@ -59,6 +59,7 @@ func (e EmojiReaction) MarshalJSON() ([]byte, error) {
From string `json:"from"`
MessageID string `json:"messageId,omitempty"`
MessageType protobuf.MessageType `json:"messageType,omitempty"`
Retracted bool `json:"retracted,omitempty"`
EmojiID protobuf.EmojiReaction_Type `json:"emojiId,omitempty"`
}{
@ -69,6 +70,7 @@ func (e EmojiReaction) MarshalJSON() ([]byte, error) {
From: e.From,
MessageID: e.MessageId,
MessageType: e.MessageType,
Retracted: e.Retracted,
EmojiID: e.Type,
}