diff options
author | 2021-11-01 20:23:09 +0530 | |
---|---|---|
committer | 2021-11-01 20:23:09 +0530 | |
commit | 15a346bc726f6ca9075f6692b6deb2f486cc66aa (patch) | |
tree | 13d0263da311950b88f998a7eb77eb7dadeee891 | |
parent | Add source credit and Color.from_rgb method to get discord color (diff) |
Fix lint errors of eac9d3b4194004894d4f4e50862f184db695d402
-rw-r--r-- | bot/exts/utilities/color.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bot/exts/utilities/color.py b/bot/exts/utilities/color.py index 563376fe..c79e7620 100644 --- a/bot/exts/utilities/color.py +++ b/bot/exts/utilities/color.py @@ -5,7 +5,7 @@ import random from io import BytesIO from PIL import Image, ImageColor -from discord import Embed, File, Color +from discord import Color, Embed, File from discord.ext import commands from discord.ext.commands.errors import BadArgument from rapidfuzz import process @@ -23,7 +23,7 @@ class Colour(commands.Cog): self.bot = bot with open(pathlib.Path("bot/resources/utilities/ryanzec_colours.json")) as f: self.colour_mapping = json.load(f) - del self.colour_mapping['_'] # Delete source credit entry + del self.colour_mapping['_'] # Delete source credit entry async def send_colour_response(self, ctx: commands.Context, rgb: tuple[int, int, int]) -> None: """Create and send embed from user given colour information.""" @@ -53,7 +53,7 @@ class Colour(commands.Cog): colour_embed = Embed( title=colour_or_color.title(), description=desc, - colour= Color.from_rgb(*rgb) + colour=Color.from_rgb(*rgb) ) colour_conversions = self.get_colour_conversions(rgb) for colour_space, value in colour_conversions.items(): |