aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar aru <[email protected]>2021-12-15 18:15:16 -0500
committerGravatar GitHub <[email protected]>2021-12-15 23:15:16 +0000
commit55f008ee03c15b24551bdc5509459337df9acd8e (patch)
tree383c86db8fcd4d3919cd10685aea859ce353a601
parentMerge pull request #980 from python-discord/dependabot/pip/lxml-4.6.5 (diff)
minor: allow color command in dev-media (#944)
Co-authored-by: Xithrius <[email protected]>
-rw-r--r--bot/exts/utilities/colour.py7
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.