We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6ae2bd commit fac922cCopy full SHA for fac922c
discord/bot.py
@@ -142,7 +142,18 @@ def remove_application_command(
142
"""
143
return self._application_commands.pop(command.id)
144
145
- def get_command(
+ @property
146
+ def get_command(self):
147
+ """Shortcut for :meth:`.get_application_command`.
148
+
149
+ .. note::
150
+ Overridden in :class:`ext.commands.Bot`.
151
152
+ .. versionadded:: 2.0
153
+ """
154
+ # TODO: Do something like we did in self.commands for this
155
+ return self.get_application_command
156
+ def get_application_command(
157
self,
158
name: str,
159
guild_ids: Optional[List[int]] = None,
0 commit comments