From a2ca9667e2aa56a1cae3d3631b94f7f2543e0669 Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Tue, 27 Sep 2022 23:02:43 +1000 Subject: Fix message editing --- src/api/util/handlers/Message.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/api/util/handlers') diff --git a/src/api/util/handlers/Message.ts b/src/api/util/handlers/Message.ts index d44b368f..fbf10a8a 100644 --- a/src/api/util/handlers/Message.ts +++ b/src/api/util/handlers/Message.ts @@ -59,8 +59,8 @@ export async function handleMessage(opts: MessageOptions): Promise { ? await Sticker.find({ where: { id: In(opts.sticker_ids) } }) : undefined; const message = Message.create({ - ...opts, id: Snowflake.generate(), + ...opts, sticker_items: stickers, guild_id: channel.guild_id, channel_id: opts.channel_id, -- cgit 1.4.1