aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebbyLaw <[email protected]>2020-07-16 22:17:46 -0700
committerRapptz <[email protected]>2020-07-22 23:18:30 -0400
commitb43658f6ff25d917d3890abbb586a0539c005015 (patch)
treeed2dcc7ae4bdc98b82efebf0a69d82e8ecdb1707
parentAdd gray alias for discord.Colour (diff)
downloaddiscord.py-b43658f6ff25d917d3890abbb586a0539c005015.tar.xz
discord.py-b43658f6ff25d917d3890abbb586a0539c005015.zip
[commands] Add documentation for exceptions in Context.(re)invoke
-rw-r--r--discord/ext/commands/context.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/discord/ext/commands/context.py b/discord/ext/commands/context.py
index bb48935c..8b8cf4bc 100644
--- a/discord/ext/commands/context.py
+++ b/discord/ext/commands/context.py
@@ -113,6 +113,11 @@ class Context(discord.abc.Messageable):
The arguments to to use.
\*\*kwargs
The keyword arguments to use.
+
+ Raises
+ -------
+ TypeError
+ The command argument to invoke is missing.
"""
try:
@@ -154,6 +159,11 @@ class Context(discord.abc.Messageable):
Whether to start the call chain from the very beginning
or where we left off (i.e. the command that caused the error).
The default is to start where we left off.
+
+ Raises
+ -------
+ ValueError
+ The context to reinvoke is not valid.
"""
cmd = self.command
view = self.view