aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar D0rs4n <[email protected]>2021-08-23 19:27:02 +0200
committerGravatar D0rs4n <[email protected]>2021-08-23 19:27:02 +0200
commit26af16e986eab0bd561faf2cdd0828d77c3586be (patch)
tree3f3ee4748f051b2abb31fe51c7d1c362524284db
parentMerge pull request #1771 from python-discord/TizzySaurus-patch-1 (diff)
Remove restriction on snowflake command
-rw-r--r--bot/exts/utils/utils.py4
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.")