diff options
| author | 2020-02-19 21:03:45 +0200 | |
|---|---|---|
| committer | 2020-02-19 21:03:45 +0200 | |
| commit | 8599c68ce7544520d50419ba9afe0f2b0b6fc63e (patch) | |
| tree | 35502378e030dce2fce5eae91968943582b0f855 | |
| parent | Deletion of the consuming rest (*) used in _get_command (diff) | |
Delete_after added for suggestion message
preventing message spam by the bot when commands are misspelt
| -rw-r--r-- | bot/cogs/error_handler.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bot/cogs/error_handler.py b/bot/cogs/error_handler.py index 13221799b..1a1914b93 100644 --- a/bot/cogs/error_handler.py +++ b/bot/cogs/error_handler.py @@ -110,7 +110,8 @@ class ErrorHandler(Cog): if similar_command.can_run(ctx): misspelled_content = ctx.message.content await ctx.send( - f"Did you mean:\n**{misspelled_content.replace(command_name, similar_command.name)}**" + f"Did you mean:\n**{misspelled_content.replace(command_name, similar_command.name)}**", + delete_after=7.0 ) elif isinstance(e, BadArgument): |