Skip to content

Commit eb113b0

Browse files
committed
Merge branch 'fix/client-run' of https://github.com/DA-344/pycord into fix/client-run
2 parents 8c035cb + ad281a4 commit eb113b0

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)