summary refs log tree commit diff
path: root/src/api
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-09-27 23:02:43 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-09-27 23:02:43 +1000
commita2ca9667e2aa56a1cae3d3631b94f7f2543e0669 (patch)
treeb6fdf1540ab2455806c29b4a5b1ea42aa927e434 /src/api
parentMake client cacher suck less? (diff)
downloadserver-a2ca9667e2aa56a1cae3d3631b94f7f2543e0669.tar.xz
Fix message editing
Diffstat (limited to '')
-rw-r--r--src/api/util/handlers/Message.ts2
1 files changed, 1 insertions, 1 deletions
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<Message> {
 		? 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,