From 5fd13c6c4618a1f3267042c8b21fdcd229124ccb Mon Sep 17 00:00:00 2001 From: Pop Rosian Date: Tue, 7 Sep 2021 17:55:50 +0300 Subject: [PATCH] Remove type hinting of slash_command, user_command, message_command --- discord/bot.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/discord/bot.py b/discord/bot.py index 7723fc2a01..fbd070744a 100644 --- a/discord/bot.py +++ b/discord/bot.py @@ -247,7 +247,7 @@ async def handle_interaction(self, interaction: Interaction) -> None: context = await self.get_application_context(interaction) await command.invoke(context) - def slash_command(self, **kwargs) -> SlashCommand: + def slash_command(self, **kwargs): """A shortcut decorator that invokes :func:`.ApplicationCommandMixin.command` and adds it to the internal command list via :meth:`~.ApplicationCommandMixin.add_application_command`. This shortcut is made specifically for :class:`.SlashCommand`. @@ -262,7 +262,7 @@ def slash_command(self, **kwargs) -> SlashCommand: """ return self.application_command(cls=SlashCommand, **kwargs) - def user_command(self, **kwargs) -> UserCommand: + def user_command(self, **kwargs): """A shortcut decorator that invokes :func:`.ApplicationCommandMixin.command` and adds it to the internal command list via :meth:`~.ApplicationCommandMixin.add_application_command`. This shortcut is made specifically for :class:`.UserCommand`. @@ -277,7 +277,7 @@ def user_command(self, **kwargs) -> UserCommand: """ return self.application_command(cls=UserCommand, **kwargs) - def message_command(self, **kwargs) -> MessageCommand: + def message_command(self, **kwargs): """A shortcut decorator that invokes :func:`.ApplicationCommandMixin.command` and adds it to the internal command list via :meth:`~.ApplicationCommandMixin.add_application_command`. This shortcut is made specifically for :class:`.MessageCommand`.