Merge with 2.0 branch and reformat.
This commit is contained in:
parent
7b5465c3b8
commit
46b00f0d4a
@ -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__
|
||||
|
Loading…
x
Reference in New Issue
Block a user