From 6becdf88a2b0b175bbd6f29bb5cb0e2f634d6c14 Mon Sep 17 00:00:00 2001 From: MathMan05 Date: Tue, 18 Nov 2025 16:23:07 -0600 Subject: [PATCH] embed send fix --- src/webpage/channel.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/webpage/channel.ts b/src/webpage/channel.ts index b8d2c12..0a34665 100644 --- a/src/webpage/channel.ts +++ b/src/webpage/channel.ts @@ -2296,6 +2296,7 @@ class Channel extends SnowFlake { reply = undefined, sticker_ids: string[], nonce: string, + embeds: embedjson[] = [], ) { const m = new Message( { @@ -2311,7 +2312,7 @@ class Channel extends SnowFlake { mention_everyone: false, attachments: files, tts: false, - embeds: [], + embeds, reactions: [], nonce, type: 0, @@ -2464,6 +2465,7 @@ class Channel extends SnowFlake { nonce: Math.floor(Math.random() * 1000000000) + "", message_reference: undefined, sticker_ids, + embeds, }; if (replyjson) { body.message_reference = replyjson; @@ -2482,6 +2484,7 @@ class Channel extends SnowFlake { body.message_reference, sticker_ids, body.nonce, + embeds, ); try { res.send((rbody = JSON.stringify(body))); @@ -2502,6 +2505,7 @@ class Channel extends SnowFlake { nonce: Math.floor(Math.random() * 1000000000) + "", message_reference: undefined, sticker_ids, + embeds, }; if (replyjson) { body.message_reference = replyjson;