[commands] Change Command.extras to match typing in app commands

This commit is contained in:
Bryan Forbes 2022-06-28 15:20:15 -05:00 committed by GitHub
parent 824bbce95b
commit b7dd97dca9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.")