1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-05 10:22:31 +01:00

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.attachments?.length &&
!opts.sticker_ids?.length &&
!opts.poll
!opts.poll &&
!opts.components?.length
) {
throw new HTTPError("Empty messages are not allowed", 50006);
}