mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-22 10:22:39 +01:00
fix: poll message is not an empty message
This commit is contained in:
parent
9b02e82614
commit
21579b11cd
@ -139,7 +139,8 @@ 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
|
||||
) {
|
||||
throw new HTTPError("Empty messages are not allowed", 50006);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user