diff options
author | 2021-11-10 14:59:33 -0500 | |
---|---|---|
committer | 2021-11-10 14:59:33 -0500 | |
commit | 87711b7b90110fc9d62d1ef880f69c1fbe6366b6 (patch) | |
tree | 9050cb7da8aa262520e8ef63eee0f7e2ec5549fe /bot/exts/utilities/colour.py | |
parent | test: return after default random invocation (diff) |
test: correct embed descriptions
Diffstat (limited to 'bot/exts/utilities/colour.py')
-rw-r--r-- | bot/exts/utilities/colour.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bot/exts/utilities/colour.py b/bot/exts/utilities/colour.py index e0607bf5..08a6973b 100644 --- a/bot/exts/utilities/colour.py +++ b/bot/exts/utilities/colour.py @@ -144,11 +144,11 @@ class Colour(commands.Cog): if len(hex_code) not in (4, 5, 7, 9) or any(_ not in string.hexdigits for _ in hex_code[1:]): hex_error_embed = discord.Embed( title="The input hex code is not valid.", - message=f"Cannot convert `{hex_code}` to a recognizable Hex format. " + description=f"Cannot convert `{hex_code}` to a recognizable Hex format. " "Hex values must be hexadecimal and take the form *#RRGGBB* or *#RGB*.", colour=discord.Colour.dark_red() ) - await ctx.send(hex_error_embed) + await ctx.send(embed=hex_error_embed) hex_tuple = ImageColor.getrgb(hex_code) if len(hex_tuple) == 4: @@ -247,7 +247,7 @@ class Colour(commands.Cog): description=f"No color found for: `{input_colour_name}`", colour=discord.Color.dark_red() ) - await ctx.send(name_error_embed) + await ctx.send(embed=name_error_embed) return f"#{self.colour_mapping[match]}" |