mirror of
https://github.com/spacebarchat/server.git
synced 2026-08-28 13:54:08 +00:00
🐛 fix empty message bug for attachments
This commit is contained in:
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user