diff options
| author | Rapptz <[email protected]> | 2019-05-05 03:15:38 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2019-05-05 03:15:38 -0400 |
| commit | bdea50e1db3c12a336c4395203f7694d21b176aa (patch) | |
| tree | d1fd8b99327c73190cd719a7f3a5386983e557e2 | |
| parent | Translation sync with Crowdin (diff) | |
| download | discord.py-bdea50e1db3c12a336c4395203f7694d21b176aa.tar.xz discord.py-bdea50e1db3c12a336c4395203f7694d21b176aa.zip | |
[commands] Better note for Command.invoke
| -rw-r--r-- | discord/ext/commands/context.py | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/discord/ext/commands/context.py b/discord/ext/commands/context.py index e988eb3d..9429fd8e 100644 --- a/discord/ext/commands/context.py +++ b/discord/ext/commands/context.py @@ -94,13 +94,18 @@ class Context(discord.abc.Messageable): This is useful if you want to just call the callback that a :class:`.Command` holds internally. - Note - ------ - You do not pass in the context as it is done for you. + .. note:: + + 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 ----------- |