1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-09-20 01:31:34 +02:00

Fix message editing

This commit is contained in:
Madeline 2022-09-27 23:02:43 +10:00
parent 567a3b802e
commit a2ca9667e2
No known key found for this signature in database
GPG Key ID: 1958E017C36F2E47

View File

@ -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,