1
Fork 0
mirror of https://github.com/wlinator/luminara.git synced 2024-10-02 18:23:12 +00:00

Still log a failed channel check on prefix commands

This commit is contained in:
wlinator 2024-04-12 02:42:46 +02:00
parent e2ba85690a
commit 57d17c96db

View file

@ -73,10 +73,9 @@ class ErrorListener(Cog):
async def on_command_error(self, ctx, error) -> None:
# on a prefix command, don't send anything if channel check fails. (to prevent spam in non-bot channels)
if isinstance(error, RacuExceptions.NotAllowedInChannel):
return
if not isinstance(error, RacuExceptions.NotAllowedInChannel):
await on_command_error(ctx, error)
await on_command_error(ctx, error)
log_msg = '[CommandHandler] %s executed .%s | PREFIX' % (ctx.author.name, ctx.command.qualified_name)
if ctx.guild is not None: