summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-03-27 21:52:47 +0100
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-03-27 21:52:47 +0100
commit7b10a17d46ae007c637bdf9bff0967769d6a51ad (patch)
treef5fac9ee6713be0c335e2d6caf1e9c1af99ff7e9
parent:bug: remove relative @paths (diff)
parentMerge branch 'master' of https://github.com/discord-open-source/discord-api (diff)
downloadserver-7b10a17d46ae007c637bdf9bff0967769d6a51ad.tar.xz
Merge branch 'master' of https://github.com/discord-open-source/discord-api
-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,