Skip to content

Commit 859d061

Browse files
authored
Merge branch 'discord-py-interactions:master' into master
2 parents defc74f + 7ab5fbb commit 859d061

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

discord_slash/const.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""Discord Slash Constants"""
22

3-
__version__ = "2.4.0"
3+
__version__ = "2.4.1"
44

55
BASE_API = "https://discord.com/api/v8"

discord_slash/utils/manage_components.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@ def create_select_option(
174174
"""
175175
emoji = emoji_to_dict(emoji)
176176

177-
if not len(label) or len(label) > 25:
178-
raise IncorrectFormat("Label length should be between 1 and 25.")
177+
if not len(label) or len(label) > 100:
178+
raise IncorrectFormat("Label length should be between 1 and 100.")
179179
if not isinstance(value, str):
180180
value = str(value)
181181
logger.warning(
@@ -184,8 +184,8 @@ def create_select_option(
184184
)
185185
if not len(value) or len(value) > 100:
186186
raise IncorrectFormat("Value length should be between 1 and 100.")
187-
if description is not None and len(description) > 50:
188-
raise IncorrectFormat("Description length must be 50 or lower.")
187+
if description is not None and len(description) > 100:
188+
raise IncorrectFormat("Description length must be 100 or lower.")
189189

190190
return {
191191
"label": label,

0 commit comments

Comments
 (0)