mirror of
https://github.com/janderedev/automod.git
synced 2024-12-22 18:55:28 +00:00
oops
This commit is contained in:
parent
83fe5243c2
commit
e71a02eb9b
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue