mirror of
https://github.com/spacebarchat/server.git
synced 2026-04-25 18:22:07 +00:00
handleMessage: set message id for cloud attachments
This commit is contained in:
@@ -346,6 +346,10 @@ export async function handleMessage(opts: MessageOptions): Promise<Message> {
|
||||
components: opts.components ?? undefined, // Fix Discord-Go?
|
||||
});
|
||||
message.channel = channel;
|
||||
message.attachments?.forEach((att) => {
|
||||
att.message_id = message.id;
|
||||
att.save();
|
||||
});
|
||||
|
||||
if (opts.author_id) {
|
||||
message.author = await User.findOneOrFail({
|
||||
|
||||
Reference in New Issue
Block a user