diff --git a/commands/tools.py b/commands/tools.py index cf06c3b..d30205c 100644 --- a/commands/tools.py +++ b/commands/tools.py @@ -67,7 +67,7 @@ async def lookup(message): ) embed.add_field( name="Creation Time", - value=f"", + value=f"", ) embed.add_field( name="Default Invite URL", @@ -135,7 +135,7 @@ async def lookup(message): ) embed.add_field( name="Creation Time", - value=f"", + value=f"", ) embed.add_field( name="Public Flags", diff --git a/utils/__init__.py b/utils/__init__.py index 5840d8a..f0010b3 100644 --- a/utils/__init__.py +++ b/utils/__init__.py @@ -7,8 +7,8 @@ from .discord import ( cooldown, invalid_user_handler, load_opus, - parse_snowflake, reply, + snowflake_timestamp, ) __all__ = [ @@ -22,6 +22,6 @@ __all__ = [ "LimitedSizeDict", "load_opus", "MessageInteractionWrapper", - "parse_snowflake", "reply", + "snowflake_timestamp", ] diff --git a/utils/discord.py b/utils/discord.py index df5a2c9..a444882 100644 --- a/utils/discord.py +++ b/utils/discord.py @@ -58,7 +58,7 @@ def load_opus(): raise Exception("could not locate working opus library") -def parse_snowflake(id): +def snowflake_timestamp(id): return round(((id >> 22) + 1420070400000) / 1000)