mirror of
https://github.com/janderedev/automod.git
synced 2024-12-22 10:45:27 +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,
|
||||
};
|
||||
|
||||
if (!payload.embeds.length) payload.embeds = undefined as any;
|
||||
|
||||
await axios.post(
|
||||
`${revoltClient.apiURL}/channels/${channel._id}/messages`,
|
||||
payload,
|
||||
|
|
Loading…
Reference in a new issue