aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar xithrius <[email protected]>2021-01-06 17:54:51 -0800
committerGravatar xithrius <[email protected]>2021-01-06 17:54:51 -0800
commit69ed1cc4742ec17b675d9323e46f30e028248106 (patch)
treeb77c5647ce4007a1ea83f603c815d292a1f5385d
parentIf user is a staff member, no command suggestions. (diff)
Only helpers and below now get command suggestions
-rw-r--r--bot/exts/backend/error_handler.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/backend/error_handler.py b/bot/exts/backend/error_handler.py
index 412c42df5..51fbac99b 100644
--- a/bot/exts/backend/error_handler.py
+++ b/bot/exts/backend/error_handler.py
@@ -9,7 +9,7 @@ from sentry_sdk import push_scope
from bot.api import ResponseCodeError
from bot.bot import Bot
-from bot.constants import Channels, Colours, Icons, STAFF_ROLES
+from bot.constants import Channels, Colours, Icons, MODERATION_ROLES
from bot.converters import TagNameConverter
from bot.errors import LockedResourceError
from bot.utils.checks import InWhitelistCheckFailure
@@ -159,7 +159,7 @@ class ErrorHandler(Cog):
with contextlib.suppress(ResponseCodeError):
await ctx.invoke(tags_get_command, tag_name=tag_name)
- if not any(role.id in STAFF_ROLES for role in ctx.author.roles):
+ 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)