From e71a02eb9b04e4ca4d0b542fdf25d3cc8e0b1e5d Mon Sep 17 00:00:00 2001 From: Jan Date: Thu, 17 Nov 2022 16:29:10 +0100 Subject: [PATCH] oops --- bridge/src/discord/events.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bridge/src/discord/events.ts b/bridge/src/discord/events.ts index e04cdb8..70a9741 100644 --- a/bridge/src/discord/events.ts +++ b/bridge/src/discord/events.ts @@ -259,6 +259,8 @@ client.on('messageCreate', async message => { attachments: autumnUrls.length ? autumnUrls : undefined, }; + if (!payload.embeds.length) payload.embeds = undefined as any; + await axios.post( `${revoltClient.apiURL}/channels/${channel._id}/messages`, payload,