aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ChrisJL <[email protected]>2022-06-14 21:39:44 +0100
committerGravatar GitHub <[email protected]>2022-06-14 21:39:44 +0100
commit1c9814c16f04bf2346ec98abaa539bfbd4591c3c (patch)
treefd0e5dc2e30eaf7d71b1f58eff871ef10c3b89ec
parentMerge pull request #2192 from python-discord/fix_invite_autoban (diff)
parentAllow char info in all channels bar py-gen (diff)
Merge pull request #2193 from python-discord/allow-char-info-in-all-channels-bar-py-gen
Allow char info in all channels bar py-gen
-rw-r--r--bot/exts/utils/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/utils/utils.py b/bot/exts/utils/utils.py
index 975e0f56d..67dd27728 100644
--- a/bot/exts/utils/utils.py
+++ b/bot/exts/utils/utils.py
@@ -10,7 +10,7 @@ from discord.utils import snowflake_time
from bot.bot import Bot
from bot.constants import Channels, MODERATION_ROLES, Roles, STAFF_PARTNERS_COMMUNITY_ROLES
from bot.converters import Snowflake
-from bot.decorators import in_whitelist
+from bot.decorators import in_whitelist, not_in_blacklist
from bot.log import get_logger
from bot.pagination import LinePaginator
from bot.utils import messages, time
@@ -48,7 +48,7 @@ class Utils(Cog):
self.bot = bot
@command()
- @in_whitelist(channels=(Channels.bot_commands, Channels.discord_bots), roles=STAFF_PARTNERS_COMMUNITY_ROLES)
+ @not_in_blacklist(channels=(Channels.python_general,), override_roles=STAFF_PARTNERS_COMMUNITY_ROLES)
async def charinfo(self, ctx: Context, *, characters: str) -> None:
"""Shows you information on up to 50 unicode characters."""
match = re.match(r"<(a?):(\w+):(\d+)>", characters)