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: 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 = {
|
const message: Message = {
|
||||||
id: Snowflake.generate(),
|
id: Snowflake.generate(),
|
||||||
channel_id,
|
channel_id,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user