messageupdate: fix member not being correct format
This commit is contained in:
parent
b7c4889c63
commit
e54879e1fe
@ -109,7 +109,11 @@ router.patch(
|
|||||||
await emitEvent({
|
await emitEvent({
|
||||||
event: "MESSAGE_UPDATE",
|
event: "MESSAGE_UPDATE",
|
||||||
channel_id,
|
channel_id,
|
||||||
data: { ...new_message.toJSON(), nonce: undefined },
|
data: {
|
||||||
|
...new_message.toJSON(),
|
||||||
|
nonce: undefined,
|
||||||
|
member: new_message.member?.toPublicMember(),
|
||||||
|
},
|
||||||
} as MessageUpdateEvent),
|
} as MessageUpdateEvent),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
@ -121,6 +125,7 @@ router.patch(
|
|||||||
id: new_message.id,
|
id: new_message.id,
|
||||||
type: new_message.type,
|
type: new_message.type,
|
||||||
channel_id: new_message.channel_id,
|
channel_id: new_message.channel_id,
|
||||||
|
member: new_message.member?.toPublicMember(),
|
||||||
author: new_message.author?.toPublicUser(),
|
author: new_message.author?.toPublicUser(),
|
||||||
attachments: new_message.attachments,
|
attachments: new_message.attachments,
|
||||||
embeds: new_message.embeds,
|
embeds: new_message.embeds,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user