mirror of
https://github.com/spacebarchat/server.git
synced 2026-05-24 16:55:30 +00:00
fix: poll message is not an empty message
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user