Fix fuzzy command search not ignoring blacklisted users (#6594)

This commit is contained in:
Karlo Prikratki
2026-03-04 22:40:59 +01:00
committed by GitHub
parent b7c11c016e
commit 60323c99d1

View File

@@ -388,6 +388,9 @@ def init_events(bot, cli_flags):
message = inline(_("Error in command '{command}'."))
await ctx.send(message.replace("{command}", ctx.command.qualified_name))
elif isinstance(error, commands.CommandNotFound):
if not await bot.message_eligible_as_command(ctx.message):
return
help_settings = await HelpSettings.from_context(ctx)
fuzzy_commands = await fuzzy_command_search(
ctx,