diff options
| author | 2021-04-23 07:07:27 +0300 | |
|---|---|---|
| committer | 2021-04-23 07:07:27 +0300 | |
| commit | d02c79e569092dbd6823f2edb6c78ed8ab1bcae4 (patch) | |
| tree | dfb295b69ab9031b4079b9fd3d4dbc44941edb13 /bot/exts/easter/egg_decorating.py | |
| parent | Merge pull request #697 from ToxicKidz/fix_catify (diff) | |
| parent | Suppresses Links In Commands (diff) | |
Merge pull request #704 from python-discord/link-suppressing
Suppress Links In Certain Commands
Diffstat (limited to 'bot/exts/easter/egg_decorating.py')
| -rw-r--r-- | bot/exts/easter/egg_decorating.py | 4 |
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)}") |