fix: check for message components

This commit is contained in:
Cyber 2024-07-09 17:19:28 +02:00
parent 21579b11cd
commit 7698a15f03

View File

@ -140,7 +140,8 @@ export async function handleMessage(opts: MessageOptions): Promise<Message> {
!opts.embeds?.length && !opts.embeds?.length &&
!opts.attachments?.length && !opts.attachments?.length &&
!opts.sticker_ids?.length && !opts.sticker_ids?.length &&
!opts.poll !opts.poll &&
!opts.components?.length
) { ) {
throw new HTTPError("Empty messages are not allowed", 50006); throw new HTTPError("Empty messages are not allowed", 50006);
} }