Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions bot/exts/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
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__)
Expand Down Expand Up @@ -160,9 +159,6 @@ async def zen(self, ctx: Context, *, search_value: Union[int, str, None] = None)
@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.")

Expand Down