Skip to content

Commit

Permalink
Fix AttributeError in Option init
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeWithSwastik committed Oct 19, 2021
1 parent 2756721 commit bd89ae0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions discord/commands/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,8 @@ def __init__(

channel_type = channel_type_map[i.__name__]
self.channel_types.append(channel_type)
else:
input_type = _type
self.input_type = input_type
self.required: bool = kwargs.pop("required", True)
self.choices: List[OptionChoice] = [
Expand Down

0 comments on commit bd89ae0

Please sign in to comment.