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:
parent
21579b11cd
commit
7698a15f03
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user