Skip to content

Give some extra info when no selectmenu options are given - #3284

Merged
Misha-133 merged 2 commits into
discord-net:devfrom
RobinLaevaert:SelectMenuBuilderError
Aug 21, 2026
Merged

Misha-133 merged 2 commits into
discord-net:devfrom
RobinLaevaert:SelectMenuBuilderError

Conversation

@RobinLaevaert

Copy link
Copy Markdown
Contributor

Description

Currently when building a select menu when no options are given and sending a message with it, we get the following error:

The server responded with error 50035: Invalid Form Body
Inner Errors:
BASE_TYPE_BAD_LENGTH: Must be between 1 and 25 in length.

It can probably be figured out what exactly is going wrong, but it's not super clear at first.

Changes

Add some checks and error throwing when building select menu component

@Misha-133
Misha-133 merged commit 911efb4 into discord-net:dev Aug 21, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants