diff options
author | 2021-08-23 22:04:59 +0300 | |
---|---|---|
committer | 2021-08-23 22:04:59 +0300 | |
commit | 69495d5d0d12ad36da74de9e3ed5ecc091915f6f (patch) | |
tree | ddb2870ffea70a96d5d4d5b42698ebe5cd7c0bef | |
parent | Merge pull request #1760 from python-discord/mbaruh/anti-spam (diff) | |
parent | Merge branch 'main' into pr/nostafflake (diff) |
Merge pull request #1772 from D0rs4n/pr/nostafflake
Remove restriction on snowflake command
-rw-r--r-- | bot/exts/utils/utils.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/bot/exts/utils/utils.py b/bot/exts/utils/utils.py index 98e43c32b..28c7ec27b 100644 --- a/bot/exts/utils/utils.py +++ b/bot/exts/utils/utils.py @@ -14,7 +14,6 @@ from bot.converters import Snowflake from bot.decorators import in_whitelist from bot.pagination import LinePaginator from bot.utils import messages -from bot.utils.checks import has_no_roles_check from bot.utils.time import time_since log = logging.getLogger(__name__) @@ -160,9 +159,6 @@ class Utils(Cog): @in_whitelist(channels=(Channels.bot_commands,), roles=STAFF_ROLES) async def snowflake(self, ctx: Context, *snowflakes: Snowflake) -> None: """Get Discord snowflake creation time.""" - 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.") |