From 874c2cd3c9ed47fa42eea184b167b8c0c64ea18e Mon Sep 17 00:00:00 2001 From: Rapptz Date: Mon, 6 Apr 2020 21:45:16 -0400 Subject: [PATCH] [commands] Raise CheckFailure if all bot "check once" fail Fix #2643 --- discord/ext/commands/bot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/discord/ext/commands/bot.py b/discord/ext/commands/bot.py index 9280136df..8485c4aba 100644 --- a/discord/ext/commands/bot.py +++ b/discord/ext/commands/bot.py @@ -890,6 +890,8 @@ class BotBase(GroupMixin): try: if await self.can_run(ctx, call_once=True): await ctx.command.invoke(ctx) + else: + raise errors.CheckFailure('The global check once functions failed.') except errors.CommandError as exc: await ctx.command.dispatch_error(ctx, exc) else: