oops
This commit is contained in:
parent
83fe5243c2
commit
e71a02eb9b
1 changed files with 2 additions and 0 deletions
|
@ -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