[commands] Add documentation for exceptions in Context.(re)invoke
This commit is contained in:
parent
9b24ff4f77
commit
b43658f6ff
@ -113,6 +113,11 @@ class Context(discord.abc.Messageable):
|
|||||||
The arguments to to use.
|
The arguments to to use.
|
||||||
\*\*kwargs
|
\*\*kwargs
|
||||||
The keyword arguments to use.
|
The keyword arguments to use.
|
||||||
|
|
||||||
|
Raises
|
||||||
|
-------
|
||||||
|
TypeError
|
||||||
|
The command argument to invoke is missing.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
try:
|
try:
|
||||||
@ -154,6 +159,11 @@ class Context(discord.abc.Messageable):
|
|||||||
Whether to start the call chain from the very beginning
|
Whether to start the call chain from the very beginning
|
||||||
or where we left off (i.e. the command that caused the error).
|
or where we left off (i.e. the command that caused the error).
|
||||||
The default is to start where we left off.
|
The default is to start where we left off.
|
||||||
|
|
||||||
|
Raises
|
||||||
|
-------
|
||||||
|
ValueError
|
||||||
|
The context to reinvoke is not valid.
|
||||||
"""
|
"""
|
||||||
cmd = self.command
|
cmd = self.command
|
||||||
view = self.view
|
view = self.view
|
||||||
|
Loading…
x
Reference in New Issue
Block a user