Skip to content

Commit bd89ae0

Browse files
Fix AttributeError in Option init
1 parent 2756721 commit bd89ae0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

discord/commands/commands.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,8 @@ def __init__(
521521

522522
channel_type = channel_type_map[i.__name__]
523523
self.channel_types.append(channel_type)
524+
else:
525+
input_type = _type
524526
self.input_type = input_type
525527
self.required: bool = kwargs.pop("required", True)
526528
self.choices: List[OptionChoice] = [

0 commit comments

Comments
 (0)