diff options
author | 2022-06-14 21:53:27 +0100 | |
---|---|---|
committer | 2022-06-14 21:53:27 +0100 | |
commit | e2031782511b28bb295ce45cd10e1b328491e8f0 (patch) | |
tree | f5aa799d60cda7c596d052a706adc6c27f4e9ebf | |
parent | Only check for autoban filters if reason key is present and not None (diff) | |
parent | Merge pull request #2193 from python-discord/allow-char-info-in-all-channels-... (diff) |
Merge branch 'main' into fix/bot#2194
-rw-r--r-- | bot/exts/utils/utils.py | 4 |
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) |