diff options
| author | 2021-12-16 20:07:14 +0000 | |
|---|---|---|
| committer | 2021-12-16 20:07:14 +0000 | |
| commit | 81239874e6d0b15820be913dba78ca8b18f50efa (patch) | |
| tree | d24fd9d7821fcff77034e144c4bbe31134f8cc36 | |
| parent | user.mention (diff) | |
| parent | minor: allow color command in dev-media (#944) (diff) | |
Merge branch 'main' of https://github.com/python-discord/sir-lancebot
| -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. | 
