Skip to content

Commit

Permalink
Fix option channel types not being detected
Browse files Browse the repository at this point in the history
  • Loading branch information
Dorukyum committed Jul 3, 2022
1 parent 9dc433a commit 28d003f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion discord/commands/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def __init__(self, input_type: Any = str, /, description: Optional[str] = None,
else:
input_type = (input_type,)
for i in input_type:
if isinstance(i, type) and issubclass(i, GuildChannel):
if i is GuildChannel:
continue
if isinstance(i, ThreadOption):
self.channel_types.append(i._type)
Expand Down

0 comments on commit 28d003f

Please sign in to comment.