This commit is contained in:
Jan 2022-11-17 16:29:10 +01:00
parent 83fe5243c2
commit e71a02eb9b
Signed by: Lea
GPG key ID: 5D5E18ACB990F57A

View file

@ -259,6 +259,8 @@ client.on('messageCreate', async message => {
attachments: autumnUrls.length ? autumnUrls : undefined, attachments: autumnUrls.length ? autumnUrls : undefined,
}; };
if (!payload.embeds.length) payload.embeds = undefined as any;
await axios.post( await axios.post(
`${revoltClient.apiURL}/channels/${channel._id}/messages`, `${revoltClient.apiURL}/channels/${channel._id}/messages`,
payload, payload,