1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-11 05:02:37 +01:00

🐛 fix empty message bug for attachments

This commit is contained in:
Flam3rboy 2021-06-26 22:45:01 +02:00
parent 9b59296af5
commit 624a4d5694

View File

@ -41,7 +41,7 @@ export async function handleMessage(opts: Partial<Message>) {
opts.type = MessageType.REPLY;
}
if (!opts.content && !opts.embeds?.length) {
if (!opts.content && !opts.embeds?.length && !opts.attachments?.length && !opts.stickers?.length && !opts.activity) {
throw new HTTPError("Empty messages are not allowed", 50006);
}