Makes this optional

I am doing this via mobile I will check on my computer later
This commit is contained in:
JDJG Inc. Official 2021-10-04 13:53:24 -04:00 committed by GitHub
parent 655692d2cc
commit 6a9083a504
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1033,7 +1033,7 @@ def format_dt(dt: datetime.datetime, /, style: Optional[TimestampStyle] = None)
return f"<t:{int(dt.timestamp())}:{style}>"
def generate_snowflake(dt: datetime.datetime) -> int:
def generate_snowflake(dt: Optional[datetime.datetime] = None) -> int:
"""Returns a numeric snowflake pretending to be created at the given date but more accurate and random than time_snowflake.
Parameters