mirror of
				https://github.com/Rapptz/discord.py.git
				synced 2025-11-03 23:12:56 +00:00 
			
		
		
		
	[commands] Change Command.extras to match typing in app commands
This commit is contained in:
		@@ -385,7 +385,7 @@ class Command(_BaseCommand, Generic[CogT, P, T]):
 | 
			
		||||
        self.usage: Optional[str] = kwargs.get('usage')
 | 
			
		||||
        self.rest_is_raw: bool = kwargs.get('rest_is_raw', False)
 | 
			
		||||
        self.aliases: Union[List[str], Tuple[str]] = kwargs.get('aliases', [])
 | 
			
		||||
        self.extras: Dict[str, Any] = kwargs.get('extras', {})
 | 
			
		||||
        self.extras: Dict[Any, Any] = kwargs.get('extras', {})
 | 
			
		||||
 | 
			
		||||
        if not isinstance(self.aliases, (list, tuple)):
 | 
			
		||||
            raise TypeError("Aliases of a command must be a list or a tuple of strings.")
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user