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:
parent
e2ba85690a
commit
57d17c96db
1 changed files with 2 additions and 3 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue