diff options
author | 2021-04-14 10:23:38 +0100 | |
---|---|---|
committer | 2021-04-14 10:23:38 +0100 | |
commit | f9fb8631ce8568e0c9f15ea4ff0977e722ede3ba (patch) | |
tree | 48ec5174352008fc0bab269d64f202a5f62cfafa | |
parent | Use a paginated embed to output multiple snowflakes (diff) |
Require at least one snowflake to be provided.
-rw-r--r-- | bot/exts/utils/utils.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bot/exts/utils/utils.py b/bot/exts/utils/utils.py index 60383996d..0fe0cab78 100644 --- a/bot/exts/utils/utils.py +++ b/bot/exts/utils/utils.py @@ -162,6 +162,9 @@ class Utils(Cog): if len(snowflakes) > 1 and await has_no_roles_check(ctx, *STAFF_ROLES): raise BadArgument("Cannot process more than one snowflake in one invocation.") + if not snowflakes: + raise BadArgument("At least one snowflake must be provided.") + embed = Embed( colour=Colour.blue() ) |