mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-11 05:02:37 +01:00
Merge branch 'master' of https://github.com/discord-open-source/discord-api
This commit is contained in:
commit
7b10a17d46
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user