From 3a8b97ffb0de90c76196bdd8287f081931d5b8a8 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Fri, 29 Dec 2017 06:00:25 -0500 Subject: [PATCH] [commands] Document that can_run can raise. --- discord/ext/commands/core.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/discord/ext/commands/core.py b/discord/ext/commands/core.py index 0463c843b..21384a1a2 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