diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-01-12 01:27:55 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-11 17:27:55 +0300 |
commit | e275d2c77d7798f3dc3043f2afeaa3f9b07183c0 (patch) | |
tree | 751444345d631dbe11b3085858fe12dbf323df0b /api/src/routes | |
parent | Update role-icons.ts (diff) | |
download | server-e275d2c77d7798f3dc3043f2afeaa3f9b07183c0.tar.xz |
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>
Diffstat (limited to 'api/src/routes')
-rw-r--r-- | api/src/routes/channels/#channel_id/messages/index.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/src/routes/channels/#channel_id/messages/index.ts b/api/src/routes/channels/#channel_id/messages/index.ts index b2fb615c..c3d3d408 100644 --- a/api/src/routes/channels/#channel_id/messages/index.ts +++ b/api/src/routes/channels/#channel_id/messages/index.ts @@ -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, |