mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-22 08:44:10 +00:00
[commands] Change Command.extras to match typing in app commands
This commit is contained in:
parent
824bbce95b
commit
b7dd97dca9
@ -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.")
|
||||
|
Loading…
x
Reference in New Issue
Block a user