From b094219a24a01ae7382b6e7406f79880adbf2060 Mon Sep 17 00:00:00 2001 From: Leander Furumo Date: Sat, 24 Oct 2026 03:35:53 +0200 Subject: [PATCH] show permission and owner errors for non slash commands --- src/cogs/errors.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cogs/errors.py b/src/cogs/errors.py index 037e8eb..1754da8 100644 --- a/src/cogs/errors.py +++ b/src/cogs/errors.py @@ -79,7 +79,7 @@ class Errors(commands.Cog): error = getattr(error, "original", error) # Ignored errors - ignored_errors = (commands.CommandNotFound, commands.DisabledCommand, commands.CheckFailure) + ignored_errors = (commands.CommandNotFound, commands.DisabledCommand) if isinstance(error, ignored_errors): self.bot.logger.info("Ignored error", error) return @@ -101,6 +101,8 @@ class Errors(commands.Cog): ) elif isinstance(error, commands.NoPrivateMessage): embed = embed_templates.error_warning("Denne kommandoen kan bare utføres it servere") + elif isinstance(error, commands.CheckFailure): + return else: embed = embed_templates.error_fatal("En ukjent feil oppstod!") f = discord.File("./src/assets/edb.png")