aboutsummaryrefslogtreecommitdiffstats
path: root/bot
diff options
context:
space:
mode:
authorGravatar brad90four <[email protected]>2021-10-29 15:49:57 -0400
committerGravatar GitHub <[email protected]>2021-10-29 15:49:57 -0400
commit409434dbf9c14fb47d20c1329f86a3863f19a2be (patch)
tree01e2534357ad2d228917ad9b888200a96c9bfee9 /bot
parentchore: add some conditions for the embed variables (diff)
fix: iterate through tuple
Co-authored-by: Sn4u <[email protected]>
Diffstat (limited to 'bot')
-rw-r--r--bot/exts/utilities/color.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/utilities/color.py b/bot/exts/utilities/color.py
index a21b74e4..035f7d6a 100644
--- a/bot/exts/utilities/color.py
+++ b/bot/exts/utilities/color.py
@@ -113,7 +113,7 @@ class Colour(commands.Cog):
@colour.command()
async def cmyk(self, ctx: commands.Context, cyan: int, magenta: int, yellow: int, key: int) -> None:
"""Command to create an embed from a CMYK input."""
- if any(c not in range(0, 101) for c in (cyan or magenta or yellow or key)):
+ if any(c not in range(0, 101) for c in (cyan, magenta, yellow, key)):
raise BadArgument(
message=f"CMYK values can only be from 0 to 100. User input was: `{cyan, magenta, yellow, key}`."
)