From 21579b11cd3ca2205cd7b2dce8c3734c101855b6 Mon Sep 17 00:00:00 2001 From: Cyber Date: Tue, 9 Jul 2024 16:02:11 +0200 Subject: [PATCH] fix: poll message is not an empty message --- src/api/util/handlers/Message.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/api/util/handlers/Message.ts b/src/api/util/handlers/Message.ts index 325a7e1a..ea673e50 100644 --- a/src/api/util/handlers/Message.ts +++ b/src/api/util/handlers/Message.ts @@ -139,7 +139,8 @@ export async function handleMessage(opts: MessageOptions): Promise { !opts.content && !opts.embeds?.length && !opts.attachments?.length && - !opts.sticker_ids?.length + !opts.sticker_ids?.length && + !opts.poll ) { throw new HTTPError("Empty messages are not allowed", 50006); }