Skip to content

Commit

Permalink
messageupdate: fix member not being correct format
Browse files Browse the repository at this point in the history
  • Loading branch information
Puyodead1 committed Dec 5, 2023
1 parent b7c4889 commit e54879e
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,11 @@ router.patch(
await emitEvent({
event: "MESSAGE_UPDATE",
channel_id,
data: { ...new_message.toJSON(), nonce: undefined },
data: {
...new_message.toJSON(),
nonce: undefined,
member: new_message.member?.toPublicMember(),
},
} as MessageUpdateEvent),
]);

Expand All @@ -121,6 +125,7 @@ router.patch(
id: new_message.id,
type: new_message.type,
channel_id: new_message.channel_id,
member: new_message.member?.toPublicMember(),
author: new_message.author?.toPublicUser(),
attachments: new_message.attachments,
embeds: new_message.embeds,
Expand Down

0 comments on commit e54879e

Please sign in to comment.