Skip to content

Commit d338d8b

Browse files
committed
Fix actx.invoke docstring
1 parent 68e9cf3 commit d338d8b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

discord/commands/context.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,15 +99,19 @@ async def _get_channel(self) -> Optional[InteractionChannel]:
9999

100100
async def invoke(self, command: ApplicationCommand[CogT, P, T], /, *args: P.args, **kwargs: P.kwargs) -> T:
101101
r"""|coro|
102+
102103
Calls a command with the arguments given.
103104
This is useful if you want to just call the callback that a
104105
:class:`.ApplicationCommand` holds internally.
106+
105107
.. note::
108+
106109
This does not handle converters, checks, cooldowns, pre-invoke,
107110
or after-invoke hooks in any matter. It calls the internal callback
108111
directly as-if it was a regular function.
109112
You must take care in passing the proper arguments when
110113
using this function.
114+
111115
Parameters
112116
-----------
113117
command: :class:`.ApplicationCommand`

0 commit comments

Comments
 (0)