aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2017-12-29 06:00:25 -0500
committerRapptz <[email protected]>2017-12-29 06:00:25 -0500
commit3a8b97ffb0de90c76196bdd8287f081931d5b8a8 (patch)
treecf441023f5c0091a92586006beecf7d70f0fd4e0
parent[commands] Forbid passing a string to aliases in Command. (diff)
downloaddiscord.py-3a8b97ffb0de90c76196bdd8287f081931d5b8a8.tar.xz
discord.py-3a8b97ffb0de90c76196bdd8287f081931d5b8a8.zip
[commands] Document that can_run can raise.
-rw-r--r--discord/ext/commands/core.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/discord/ext/commands/core.py b/discord/ext/commands/core.py
index 0463c843..21384a1a 100644
--- a/discord/ext/commands/core.py
+++ b/discord/ext/commands/core.py
@@ -658,6 +658,12 @@ class Command:
ctx: :class:`.Context`
The ctx of the command currently being invoked.
+ Raises
+ -------
+ :class:`CommandError`
+ Any command error that was raised during a check call will be propagated
+ by this function.
+
Returns
--------
bool