diff options
| author | 2021-10-29 15:49:57 -0400 | |
|---|---|---|
| committer | 2021-10-29 15:49:57 -0400 | |
| commit | 409434dbf9c14fb47d20c1329f86a3863f19a2be (patch) | |
| tree | 01e2534357ad2d228917ad9b888200a96c9bfee9 /bot/exts | |
| parent | chore: add some conditions for the embed variables (diff) | |
fix: iterate through tuple
Co-authored-by: Sn4u <[email protected]>
Diffstat (limited to 'bot/exts')
| -rw-r--r-- | bot/exts/utilities/color.py | 2 |
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}`." ) |