Skip to content

Commit 2ca6a00

Browse files
committed
Merge branch 'feat/select-defaults' of https://github.com/DA-344/pycord into feat/select-defaults
2 parents 16a6045 + acbe07b commit 2ca6a00

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

discord/commands/options.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,9 @@ def __init__(
369369

370370
@staticmethod
371371
def _strip_none_type(input_type):
372+
if isinstance(input_type, SlashCommandOptionType):
373+
return input_type
374+
372375
if input_type is type(None):
373376
raise TypeError("Option type cannot be only NoneType")
374377

discord/components.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ def __init__(
575575
raise TypeError("you must provide an object model, or an id and type")
576576

577577
def __repr__(self) -> str:
578-
return f'<SelectDefaultValue id={self.id} type={self.type}>'
578+
return f"<SelectDefaultValue id={self.id} type={self.type}>"
579579

580580
@classmethod
581581
def _from_data(

0 commit comments

Comments
 (0)