1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-11 05:02:37 +01:00
This commit is contained in:
Flam3rboy 2021-03-27 21:52:47 +01:00
commit 7b10a17d46

View File

@ -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,