mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-05 09:26:10 +00:00
Add initial support for app command localisation
This commit is contained in:
@ -253,7 +253,7 @@ class BotBase(GroupMixin[None]):
|
||||
|
||||
def hybrid_command(
|
||||
self,
|
||||
name: str = MISSING,
|
||||
name: Union[str, app_commands.locale_str] = MISSING,
|
||||
with_app_command: bool = True,
|
||||
*args: Any,
|
||||
**kwargs: Any,
|
||||
@ -277,7 +277,7 @@ class BotBase(GroupMixin[None]):
|
||||
|
||||
def hybrid_group(
|
||||
self,
|
||||
name: str = MISSING,
|
||||
name: Union[str, app_commands.locale_str] = MISSING,
|
||||
with_app_command: bool = True,
|
||||
*args: Any,
|
||||
**kwargs: Any,
|
||||
|
Reference in New Issue
Block a user