Add redbot.core.app_commands namespace (#6006)

This commit is contained in:
Jakub Kuczys
2023-03-28 02:49:59 +02:00
committed by GitHub
parent c79d0d723e
commit 44e129bc66
8 changed files with 104 additions and 21 deletions

View File

@@ -46,6 +46,7 @@ from discord.ext.commands import (
from .errors import ConversionFailure
from .requires import PermState, PrivilegeLevel, Requires, PermStateAllowedStates
from .. import app_commands
from ..i18n import Translator
_T = TypeVar("_T")
@@ -1093,7 +1094,7 @@ class HybridGroup(Group, DPYHybridGroup[_CogT, _P, _T]):
def hybrid_command(
name: Union[str, discord.app_commands.locale_str] = discord.utils.MISSING,
name: Union[str, app_commands.locale_str] = discord.utils.MISSING,
*,
with_app_command: bool = True,
**attrs: Any,
@@ -1113,7 +1114,7 @@ def hybrid_command(
def hybrid_group(
name: Union[str, discord.app_commands.locale_str] = discord.utils.MISSING,
name: Union[str, app_commands.locale_str] = discord.utils.MISSING,
*,
with_app_command: bool = True,
**attrs: Any,