Skip to content

Commit

Permalink
Revert "Support providing option channel types as list (Pycord-Develo…
Browse files Browse the repository at this point in the history
…pment#1000)"

This reverts commit 87dff73.
  • Loading branch information
krittick committed Apr 18, 2022
1 parent 87dff73 commit 96925fe
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 @@ -139,7 +139,7 @@ def __init__(self, input_type: Any, /, description: str = None, **kwargs) -> Non
input_type = SlashCommandOptionType.string
else:
if _type == SlashCommandOptionType.channel:
if not isinstance(input_type, list):
if not isinstance(input_type, tuple):
input_type = (input_type,)
for i in input_type:
if i.__name__ == "GuildChannel":
Expand Down

0 comments on commit 96925fe

Please sign in to comment.