select_option
Function
Option for a select menu, a radio group or a checkbox group.
from discord_interactions import select_optionSignature
def select_option( label: str, value: str | None = None, description: str | None = None, emoji: str | Dict[str, Any] | Any | None = None, default: bool | None = None,) -> Dict[str, Any]Parameters
| Name | Type | Default | Description |
|---|---|---|---|
label | str | required | Displayed text (100 characters max). |
value | str | None | None | Value sent to the bot; defaults to the label. |
description | str | None | None | Secondary text under the label. |
emoji | str | Dict[str, Any] | Any | None | None | Emoji shown before the option (select menus only). |
default | bool | None | None | Pre-selected option. |
Returns
Dict[str, Any]