summary refs log tree commit diff
path: root/api/src/routes
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-01-12 01:27:55 +1100
committerGitHub <noreply@github.com>2022-01-11 17:27:55 +0300
commite275d2c77d7798f3dc3043f2afeaa3f9b07183c0 (patch)
tree751444345d631dbe11b3085858fe12dbf323df0b /api/src/routes
parentUpdate role-icons.ts (diff)
downloadserver-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.ts2
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,