1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-25 19:52:36 +01:00

fix: poll message is not an empty message

This commit is contained in:
Cyber 2024-07-09 16:02:11 +02:00
parent 9b02e82614
commit 21579b11cd

View File

@ -139,7 +139,8 @@ export async function handleMessage(opts: MessageOptions): Promise<Message> {
!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);
}