Skip to content

Commit 28d003f

Browse files
committed
Fix option channel types not being detected
1 parent 9dc433a commit 28d003f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

discord/commands/options.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def __init__(self, input_type: Any = str, /, description: Optional[str] = None,
163163
else:
164164
input_type = (input_type,)
165165
for i in input_type:
166-
if isinstance(i, type) and issubclass(i, GuildChannel):
166+
if i is GuildChannel:
167167
continue
168168
if isinstance(i, ThreadOption):
169169
self.channel_types.append(i._type)

0 commit comments

Comments
 (0)