aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/utilities
diff options
context:
space:
mode:
authorGravatar brad90four <[email protected]>2021-09-23 07:48:45 -0400
committerGravatar brad90four <[email protected]>2021-09-23 07:48:45 -0400
commit78cdc0f3e29ecc2571d40a2acb53b98e1b0f0e78 (patch)
tree588cf441c34cf6f05f687bb81d2136dd81915efa /bot/exts/utilities
parentchore: create subcommands for sending embed (diff)
chore: make cmyk_to_rgb def multiline
Diffstat (limited to 'bot/exts/utilities')
-rw-r--r--bot/exts/utilities/color.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/bot/exts/utilities/color.py b/bot/exts/utilities/color.py
index 6cc03c9a..9e2af325 100644
--- a/bot/exts/utilities/color.py
+++ b/bot/exts/utilities/color.py
@@ -149,7 +149,11 @@ class Color(commands.Cog):
b = int(b * 255)
await self.color_embed(ctx, (r, g, b))
- async def cmyk_to_rgb(self, ctx: commands.Context, input_color: tuple[int, int, int, int]) -> tuple[int, int, int]:
+ async def cmyk_to_rgb(
+ self,
+ ctx: commands.Context,
+ input_color: tuple[int, int, int, int]
+ ) -> tuple[int, int, int]:
"""Function to convert cmyk color to rgb color and send main embed."""
input_color = self.tuple_create(input_color)
c = input_color[0]