diff options
| author | 2020-02-21 21:11:14 +0200 | |
|---|---|---|
| committer | 2020-02-21 21:11:14 +0200 | |
| commit | 7eb1acd41bddf0377a3e211a87962e3af87be07e (patch) | |
| tree | 88e0d6888c9f469c1f36e6e25685e95f7b2580c9 | |
| parent | Handling and logging CommandError (diff) | |
Only replace the misspelt command, and not the whole occurrences of it
Diffstat (limited to '')
| -rw-r--r-- | bot/cogs/error_handler.py | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/cogs/error_handler.py b/bot/cogs/error_handler.py index 19d6e6946..a642c3b7e 100644 --- a/bot/cogs/error_handler.py +++ b/bot/cogs/error_handler.py @@ -120,7 +120,7 @@ class ErrorHandler(Cog):                  misspelled_content = ctx.message.content                  e = Embed()                  e.set_author(name="Did you mean:", icon_url=Icons.questionmark) -                e.description = f"{misspelled_content.replace(command_name, similar_command_name)}" +                e.description = f"{misspelled_content.replace(command_name, similar_command_name, 1)}"                  await ctx.send(embed=e, delete_after=7.0)          elif isinstance(e, BadArgument):  |