Merge pull request #1141 from CyberL1/master

fix: poll message is not an empty message
This commit is contained in:
Puyodead1
2024-07-09 14:20:05 -04:00
committed by GitHub
+3 -1
View File
@@ -139,7 +139,9 @@ 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 &&
!opts.components?.length
) {
throw new HTTPError("Empty messages are not allowed", 50006);
}