Skip to content

Commit

Permalink
fix: append new embeds array correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
insertish committed Nov 28, 2024
1 parent 84fdb46 commit 3c9d7b0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/events/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,10 @@ export async function handleEvent(
client.messages.updateUnderlyingObject(
event.id,
"embeds",
(embeds) => [...(embeds ?? []), event.append.embeds ?? []] as Embed[]
(embeds) =>
[...(embeds ?? []), ...(event.append.embeds ?? [])] as Embed[]
);

client.messages.updateUnderlyingObject(
event.id,
"channelId",
Expand Down

0 comments on commit 3c9d7b0

Please sign in to comment.