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 fe4ee70 commit a4e816aCopy full SHA for a4e816a
discord/app/commands.py
@@ -104,6 +104,16 @@ def __repr__(self):
104
def __eq__(self, other):
105
return isinstance(other, self.__class__)
106
107
+ async def __call__(self, ctx, *args, **kwargs):
108
+ """|coro|
109
+ Calls the command's callback.
110
+
111
+ This method bypasses all checks that a command has and does not
112
+ convert the arguments beforehand, so take care to pass the correct
113
+ arguments in.
114
+ """
115
+ return await self.callback(ctx, *args, **kwargs)
116
117
async def prepare(self, ctx: ApplicationContext) -> None:
118
# This should be same across all 3 types
119
ctx.command = self
0 commit comments