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:
committed by
GitHub
co-authored by
Erkin Alp Güney
parent
1b42df8a32
commit
e275d2c77d
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user