From 624a4d5694b2b7699f0415445806b10514ef1a01 Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Sat, 26 Jun 2021 22:45:01 +0200 Subject: [PATCH] :bug: fix empty message bug for attachments --- src/util/Message.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/Message.ts b/src/util/Message.ts index 40367d8f..42cdbb90 100644 --- a/src/util/Message.ts +++ b/src/util/Message.ts @@ -41,7 +41,7 @@ export async function handleMessage(opts: Partial) { 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); }