Message fixes | Character limits and embed fixes (#581)

* Adds message character limits (#503)
* Fixed message `embeds` being ignored for `embed`
* Update Message.ts

Co-authored-by: Erkin Alp Güney <erkinalp9035@gmail.com>
This commit is contained in:
Madeline
2022-01-11 17:27:55 +03:00
committed by GitHub
co-authored by Erkin Alp Güney
parent 1b42df8a32
commit e275d2c77d
2 changed files with 14 additions and 8 deletions
@@ -172,7 +172,7 @@ router.post(
}
const channel = await Channel.findOneOrFail({ where: { id: channel_id }, relations: ["recipients", "recipients.user"] });
const embeds = [];
const embeds = body.embeds || [];
if (body.embed) embeds.push(body.embed);
let message = await handleMessage({
...body,