Skip to content

Commit 37d9a94

Browse files
authored
Increase Label/Description of selects to 100. (#282)
1 parent f7f39e0 commit 37d9a94

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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)