[commands] Better note for Command.invoke

This commit is contained in:
Rapptz 2019-05-05 03:15:38 -04:00
parent 41dee3f401
commit bdea50e1db

View File

@ -94,12 +94,17 @@ class Context(discord.abc.Messageable):
This is useful if you want to just call the callback that a This is useful if you want to just call the callback that a
:class:`.Command` holds internally. :class:`.Command` holds internally.
Note .. note::
------
You do not pass in the context as it is done for you. This does not handle converters, checks, cooldowns, pre-invoke,
or after-invoke hooks in any matter. It calls the internal callback
directly as-if it was a regular function.
You must take care in passing the proper arguments when
using this function.
.. warning::
Warning
---------
The first parameter passed **must** be the command being invoked. The first parameter passed **must** be the command being invoked.
Parameters Parameters