Skip to content

Commit d467901

Browse files
committed
Update options.py
1 parent 8826684 commit d467901

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
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

0 commit comments

Comments
 (0)