# SelectOption

Option on [Select](https://devkiki7000.gitbook.io/discord-components/api-reference/component/select).

{% tabs %}
{% tab title="Parameters" %}

| label                                                                           |
| ------------------------------------------------------------------------------- |
| <p>The option's label.</p><p></p><p><strong>Type:</strong> <code>str</code></p> |

| value                                                                                                              |
| ------------------------------------------------------------------------------------------------------------------ |
| <p>The option's value. (It is like a button's custom\_id)</p><p></p><p><strong>Type: <code>str</code></strong></p> |

| emoji                                                                                 |                                   |                      |
| ------------------------------------------------------------------------------------- | --------------------------------- | -------------------- |
| <p>The option's emoji.</p><p></p><p><strong>Type:</strong> <code>discord.Emoji</code> | <code>discord.PartialEmoji</code> | <code>str</code></p> |

| description                                                                           |
| ------------------------------------------------------------------------------------- |
| <p>The option's description</p><p></p><p><strong>Type:</strong>  <code>str</code></p> |

| default                                                                                    |
| ------------------------------------------------------------------------------------------ |
| <p>If the option is selected initially.</p><p><strong>Type:</strong> <code>bool</code></p> |
| {% endtab %}                                                                               |

{% tab title="Attributes" %}

| label                                                                           |
| ------------------------------------------------------------------------------- |
| <p>The option's label.</p><p></p><p><strong>Type:</strong> <code>str</code></p> |

| value                                                                                                              |
| ------------------------------------------------------------------------------------------------------------------ |
| <p>The option's value. (It is like a button's custom\_id)</p><p></p><p><strong>Type: <code>str</code></strong></p> |

| emoji                                                                                 |                                   |                      |
| ------------------------------------------------------------------------------------- | --------------------------------- | -------------------- |
| <p>The option's emoji.</p><p></p><p><strong>Type:</strong> <code>discord.Emoji</code> | <code>discord.PartialEmoji</code> | <code>str</code></p> |

| description                                                                           |
| ------------------------------------------------------------------------------------- |
| <p>The option's description</p><p></p><p><strong>Type:</strong>  <code>str</code></p> |

| default                                                                                    |
| ------------------------------------------------------------------------------------------ |
| <p>If the option is selected initially.</p><p><strong>Type:</strong> <code>bool</code></p> |
| {% endtab %}                                                                               |

{% tab title="Methods" %}

| to\_dict                                                                                                                              |
| ------------------------------------------------------------------------------------------------------------------------------------- |
| <p>Gets the component information required for API request in dict form.</p><p></p><p><strong>Returns: <code>dict</code></strong></p> |

| from\_dict                                                                                                                                                                                                                                                                                                               |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| <p>Creates component instance from json.<br><br>This is a static method.</p><p></p><p><strong>Parameters:</strong></p><ul><li><strong>data</strong> (<code>dict</code>) - The json to construct select from.</li></ul><p><strong>Returns:</strong> <a href="option"><code>discord-components.SelectOption</code></a></p> |
| {% endtab %}                                                                                                                                                                                                                                                                                                             |
| {% endtabs %}                                                                                                                                                                                                                                                                                                            |
