handleMessage: set message id for cloud attachments

This commit is contained in:
Rory&
2026-04-16 03:29:20 +02:00
parent 3687202788
commit e40579fe33

View File

@@ -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({