diff options
author | 2022-01-01 23:44:42 +0000 | |
---|---|---|
committer | 2022-01-01 23:44:42 +0000 | |
commit | 21cca969fab2582b51190468b8810c0157c8d7a7 (patch) | |
tree | ee77a61d57b4d46f0e3ebdfadab760896986db2d /bot/exts/utilities/colour.py | |
parent | Add Better Support For Whitelisting DM Commands (diff) | |
parent | Merge pull request #997 from Sn4u/fix-995 (diff) |
Merge branch 'main' into dm-check
Diffstat (limited to 'bot/exts/utilities/colour.py')
-rw-r--r-- | bot/exts/utilities/colour.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bot/exts/utilities/colour.py b/bot/exts/utilities/colour.py index 7c83fc66..ee6bad93 100644 --- a/bot/exts/utilities/colour.py +++ b/bot/exts/utilities/colour.py @@ -11,8 +11,10 @@ import rapidfuzz from PIL import Image, ImageColor from discord.ext import commands +from bot import constants from bot.bot import Bot from bot.exts.core.extensions import invoke_help_command +from bot.utils.decorators import whitelist_override THUMBNAIL_SIZE = (80, 80) @@ -78,6 +80,11 @@ class Colour(commands.Cog): await ctx.send(file=thumbnail_file, embed=colour_embed) @commands.group(aliases=("color",), invoke_without_command=True) + @whitelist_override( + channels=constants.WHITELISTED_CHANNELS, + roles=constants.STAFF_ROLES, + categories=[constants.Categories.development, constants.Categories.media] + ) async def colour(self, ctx: commands.Context, *, colour_input: Optional[str] = None) -> None: """ Create an embed that displays colour information. |