Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions discord/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand All @@ -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`.
Expand All @@ -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`.
Expand Down