mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2026-01-20 23:22:58 -05:00
Don't run command checks on each message starting with a prefix (#3718)
This commit is contained in:
@@ -197,12 +197,9 @@ def init_events(bot, cli_flags):
|
||||
help_settings = await HelpSettings.from_context(ctx)
|
||||
fuzzy_commands = await fuzzy_command_search(
|
||||
ctx,
|
||||
commands={
|
||||
c
|
||||
async for c in RedHelpFormatter.help_filter_func(
|
||||
ctx, bot.walk_commands(), help_settings=help_settings
|
||||
)
|
||||
},
|
||||
commands=RedHelpFormatter.help_filter_func(
|
||||
ctx, bot.walk_commands(), help_settings=help_settings
|
||||
),
|
||||
)
|
||||
if not fuzzy_commands:
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user