We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 16a6045 + acbe07b commit 2ca6a00Copy full SHA for 2ca6a00
discord/commands/options.py
@@ -369,6 +369,9 @@ def __init__(
369
370
@staticmethod
371
def _strip_none_type(input_type):
372
+ if isinstance(input_type, SlashCommandOptionType):
373
+ return input_type
374
+
375
if input_type is type(None):
376
raise TypeError("Option type cannot be only NoneType")
377
discord/components.py
@@ -575,7 +575,7 @@ def __init__(
575
raise TypeError("you must provide an object model, or an id and type")
576
577
def __repr__(self) -> str:
578
- return f'<SelectDefaultValue id={self.id} type={self.type}>'
+ return f"<SelectDefaultValue id={self.id} type={self.type}>"
579
580
@classmethod
581
def _from_data(
0 commit comments