Merge with 2.0 branch and reformat.

This commit is contained in:
Soheab 2021-10-13 20:51:09 +02:00
parent 7b5465c3b8
commit 46b00f0d4a

View File

@ -1294,7 +1294,11 @@ class Command(_BaseCommand, Generic[CogT, P, T]):
elif all([arg in application_option_channel_types for arg in annotation.__args__]):
option["type"] = 7
option["channel_types"] = [discord_value for arg in annotation.__args__ for discord_value in application_option_channel_types[arg]]
option["channel_types"] = [
discord_value
for arg in annotation.__args__
for discord_value in application_option_channel_types[arg]
]
elif origin is Literal:
literal_values = annotation.__args__