summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-06-26 22:45:01 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-06-26 22:45:01 +0200
commit624a4d5694b2b7699f0415445806b10514ef1a01 (patch)
tree698d844faadfb664d956a78e13bd706039c9cc46 /src
parent:bug: fix CORS (diff)
downloadserver-624a4d5694b2b7699f0415445806b10514ef1a01.tar.xz
:bug: fix empty message bug for attachments
Diffstat (limited to 'src')
-rw-r--r--src/util/Message.ts2
1 files changed, 1 insertions, 1 deletions
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<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); }