mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-06 01:12:33 -05:00
Add redbot.core.app_commands namespace (#6006)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user