aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2021-08-25 09:21:49 -0400
committerRapptz <[email protected]>2021-08-25 09:21:49 -0400
commit3382d2e9e86f4daacd9097f284da51b49a54f7b9 (patch)
tree13a9dce4658d843dcb150ecb56bd1566078eeef9
parentBring back ParamSpec in utils (diff)
downloaddiscord.py-3382d2e9e86f4daacd9097f284da51b49a54f7b9.tar.xz
discord.py-3382d2e9e86f4daacd9097f284da51b49a54f7b9.zip
Update documentation on select limits
-rw-r--r--discord/components.py4
-rw-r--r--discord/ui/select.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/discord/components.py b/discord/components.py
index b9b7fb20..74c7be3d 100644
--- a/discord/components.py
+++ b/discord/components.py
@@ -277,14 +277,14 @@ class SelectOption:
-----------
label: :class:`str`
The label of the option. This is displayed to users.
- Can only be up to 25 characters.
+ Can only be up to 100 characters.
value: :class:`str`
The value of the option. This is not displayed to users.
If not provided when constructed then it defaults to the
label. Can only be up to 100 characters.
description: Optional[:class:`str`]
An additional description of the option, if any.
- Can only be up to 50 characters.
+ Can only be up to 100 characters.
emoji: Optional[Union[:class:`str`, :class:`Emoji`, :class:`PartialEmoji`]]
The emoji of the option, if available.
default: :class:`bool`
diff --git a/discord/ui/select.py b/discord/ui/select.py
index 1a0d7388..8479ca15 100644
--- a/discord/ui/select.py
+++ b/discord/ui/select.py
@@ -197,13 +197,13 @@ class Select(Item[V]):
-----------
label: :class:`str`
The label of the option. This is displayed to users.
- Can only be up to 25 characters.
+ Can only be up to 100 characters.
value: :class:`str`
The value of the option. This is not displayed to users.
If not given, defaults to the label. Can only be up to 100 characters.
description: Optional[:class:`str`]
An additional description of the option, if any.
- Can only be up to 50 characters.
+ Can only be up to 100 characters.
emoji: Optional[Union[:class:`str`, :class:`.Emoji`, :class:`.PartialEmoji`]]
The emoji of the option, if available. This can either be a string representing
the custom or unicode emoji or an instance of :class:`.PartialEmoji` or :class:`.Emoji`.