Select
Last updated
Last updated
The select component.
Extends: discord-components.Component
placeholder
The select's placeholder
Type: str
id
The select's custom id.
Type: str
options
The select's options.
Type: List[discord-components.SelectOption
]
max_values
The select's max_values.
Type: int
min_values
The select's min_values.
Type: int
disabled
Indicates if the select is disabled.
Type: bool
Default: False
placeholder
The select's placeholder
Type: str
id
The select's custom id.
If not provided, it is a random value.
Type: str
options
The select's options.
Type: List[discord-components.SelectOption
]
max_values
The select's max_values.
Type: int
min_values
The select's min_values.
Type: int
disabled
Indicates if the select is disabled.
Type: bool
to_dict
Gets the component information required for API requests in dict form.
Returns: dict
from_dict
Creates component instance from json. This is a static method.
Parameters:
data (dict
) - The json to construct select from.
Returns: discord-components.Select