Expand description

Constants, error types, and functions for validating Components.

Structs

A provided Component is invalid.

Enums

Constants

Maximum number of Components allowed inside an ActionRow.

Maximum number of root Components in a message.

Maximum length of a Component custom ID in codepoints.

Maximum Component label length in codepoints.

Maximum number of SelectMenuOptions that can be chosen in a SelectMenu.

Minimum number of SelectMenuOptions that can be chosen in a SelectMenu.

Maximum number of SelectMenuOptions that must be chosen in a SelectMenu.

Maximum length of a SelectMenuOption::label in codepoints.

Maximum length of a SelectMenuOption::value in codepoints.

Maximum length of a SelectMenu::placeholder in codepoints.

Functions

Ensure a component is correct.