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:
parent
567a3b802e
commit
a2ca9667e2
@ -59,8 +59,8 @@ export async function handleMessage(opts: MessageOptions): Promise<Message> {
|
|||||||
? await Sticker.find({ where: { id: In(opts.sticker_ids) } })
|
? await Sticker.find({ where: { id: In(opts.sticker_ids) } })
|
||||||
: undefined;
|
: undefined;
|
||||||
const message = Message.create({
|
const message = Message.create({
|
||||||
...opts,
|
|
||||||
id: Snowflake.generate(),
|
id: Snowflake.generate(),
|
||||||
|
...opts,
|
||||||
sticker_items: stickers,
|
sticker_items: stickers,
|
||||||
guild_id: channel.guild_id,
|
guild_id: channel.guild_id,
|
||||||
channel_id: opts.channel_id,
|
channel_id: opts.channel_id,
|
||||||
|
Loading…
Reference in New Issue
Block a user