summary refs log tree commit diff
path: root/src/api/util/handlers/Message.ts
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
commitff28c95f2a71ecfe56ade338bb404eab95b9ee2d (patch)
tree41cd592200a7d3ac6cd7ea8a196365253b95b8f7 /src/api/util/handlers/Message.ts
parentMake client cacher suck less? (diff)
downloadserver-ff28c95f2a71ecfe56ade338bb404eab95b9ee2d.tar.xz
Fix message editing
Diffstat (limited to 'src/api/util/handlers/Message.ts')
-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,