summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/routes/api/v8/channels/#channel_id/messages/index.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/routes/api/v8/channels/#channel_id/messages/index.ts b/src/routes/api/v8/channels/#channel_id/messages/index.ts

index b214275d..ade048a0 100644 --- a/src/routes/api/v8/channels/#channel_id/messages/index.ts +++ b/src/routes/api/v8/channels/#channel_id/messages/index.ts
@@ -111,7 +111,9 @@ router.post("/", check(MessageCreateSchema), async (req, res) => { // TODO: should it be checked if the message exists? } - // TODO: properly build message object + const embeds = []; + if (body.embed) embeds.push(body.embed); + const message: Message = { id: Snowflake.generate(), channel_id,