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