Skip to content
Open
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions redbot/core/_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,12 @@ async def on_command_error(ctx, error, unhandled_by_cog=False):
message = inline(_("Error in command '{command}'."))
await ctx.send(message.replace("{command}", ctx.command.qualified_name))
elif isinstance(error, commands.CommandNotFound):
blacklist: set[int] = (await bot.get_blacklist()).union(
await bot.get_blacklist(ctx.guild)
)
if ctx.author.id in blacklist:
return

help_settings = await HelpSettings.from_context(ctx)
fuzzy_commands = await fuzzy_command_search(
ctx,
Expand Down
Loading