diff options
author | 2021-01-17 22:04:40 +0300 | |
---|---|---|
committer | 2021-01-17 22:04:40 +0300 | |
commit | 5539bd03300f032bbb7554887eda814f31dd3592 (patch) | |
tree | fc5bb2d14ab6006a446f4d3c1f618332de603da9 | |
parent | Merge pull request #1360 from HassanAbouelela/fixes_tag_suggestions (diff) |
Stop Tag Matching On Suggestion
-rw-r--r-- | bot/exts/backend/error_handler.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/bot/exts/backend/error_handler.py b/bot/exts/backend/error_handler.py index da264ce2f..2f02fdee3 100644 --- a/bot/exts/backend/error_handler.py +++ b/bot/exts/backend/error_handler.py @@ -159,12 +159,7 @@ class ErrorHandler(Cog): return if not any(role.id in MODERATION_ROLES for role in ctx.author.roles): - tags_cog = self.bot.get_cog("Tags") - command_name = ctx.invoked_with - sent = await tags_cog.display_tag(ctx, command_name) - - if not sent: - await self.send_command_suggestion(ctx, command_name) + await self.send_command_suggestion(ctx, ctx.invoked_with) # Return to not raise the exception return |