SelectOption
Last updated
Last updated
Option on Select.
label
The option's label.
Type: str
value
The option's value. (It is like a button's custom_id)
Type: str
emoji
The option's emoji.
Type: discord.Emoji
| discord.PartialEmoji
| str
description
The option's description
Type: str
default
If the option is selected initially.
Type: bool
label
The option's label.
Type: str
value
The option's value. (It is like a button's custom_id)
Type: str
emoji
The option's emoji.
Type: discord.Emoji
| discord.PartialEmoji
| str
description
The option's description
Type: str
default
If the option is selected initially.
Type: bool
to_dict
Gets the component information required for API request 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.SelectOption