aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/easter/egg_decorating.py
diff options
context:
space:
mode:
authorGravatar Hassan Abouelela <[email protected]>2021-04-23 11:48:09 +0300
committerGravatar GitHub <[email protected]>2021-04-23 11:48:09 +0300
commit4ad47d77a7ec0a4c0110aff17973a4b782296c6c (patch)
tree843051de8a09875f8df7c5ad4e615795c0ed4139 /bot/exts/easter/egg_decorating.py
parentReword Issues Comment (diff)
parentMerge pull request #704 from python-discord/link-suppressing (diff)
Merge branch 'main' into update-pr-template
Diffstat (limited to 'bot/exts/easter/egg_decorating.py')
-rw-r--r--bot/exts/easter/egg_decorating.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/bot/exts/easter/egg_decorating.py b/bot/exts/easter/egg_decorating.py
index b18e6636..a847388d 100644
--- a/bot/exts/easter/egg_decorating.py
+++ b/bot/exts/easter/egg_decorating.py
@@ -10,6 +10,8 @@ import discord
from PIL import Image
from discord.ext import commands
+from bot.utils import helpers
+
log = logging.getLogger(__name__)
with open(Path("bot/resources/evergreen/html_colours.json"), encoding="utf8") as f:
@@ -65,7 +67,7 @@ class EggDecorating(commands.Cog):
if value:
colours[idx] = discord.Colour(value)
else:
- invalid.append(colour)
+ invalid.append(helpers.suppress_links(colour))
if len(invalid) > 1:
return await ctx.send(f"Sorry, I don't know these colours: {' '.join(invalid)}")