Add missing userID field to output payload
This commit is contained in:
parent
52a18cd8ad
commit
dc2dd4c787
@ -32,9 +32,10 @@ func Message(ctx context.Context, msg *messagingTypes.Message) *outgoing.Message
|
||||
|
||||
return &outgoing.Message{
|
||||
ID: msg.ID,
|
||||
Type: string(msg.Type),
|
||||
ChannelID: Uint64toa(msg.ChannelID),
|
||||
Message: msg.Message,
|
||||
Type: string(msg.Type),
|
||||
UserID: msg.UserID,
|
||||
|
||||
ReplyTo: msg.ReplyTo,
|
||||
Replies: msg.Replies,
|
||||
|
||||
@ -7,16 +7,16 @@ import (
|
||||
|
||||
type (
|
||||
Message struct {
|
||||
ID uint64 `json:"ID,string"`
|
||||
ID uint64 `json:"messageID,string"`
|
||||
Type string `json:"type"`
|
||||
Message string `json:"message"`
|
||||
ChannelID string `json:"channelID"`
|
||||
UserID uint64 `json:"userID,string"`
|
||||
|
||||
ReplyTo uint64 `json:"replyTo,omitempty,string"`
|
||||
Replies uint `json:"replies,omitempty"`
|
||||
RepliesFrom []string `json:"repliesFrom,omitempty"`
|
||||
|
||||
User *User `json:"user"`
|
||||
Attachment *Attachment `json:"att,omitempty"`
|
||||
Mentions MessageMentionSet `json:"mentions,omitempty"`
|
||||
Reactions MessageReactionSumSet `json:"reactions,omitempty"`
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user