Merge pull request #1141 from CyberL1/master
fix: poll message is not an empty message
This commit is contained in:
commit
22afbf62a6
@ -139,7 +139,9 @@ export async function handleMessage(opts: MessageOptions): Promise<Message> {
|
|||||||
!opts.content &&
|
!opts.content &&
|
||||||
!opts.embeds?.length &&
|
!opts.embeds?.length &&
|
||||||
!opts.attachments?.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);
|
throw new HTTPError("Empty messages are not allowed", 50006);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user