Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions discord/commands/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,9 @@ def __init__(

@staticmethod
def _strip_none_type(input_type):
if isinstance(input_type, SlashCommandOptionType):
return input_type

if input_type is type(None):
raise TypeError("Option type cannot be only NoneType")

Expand Down
Loading