Makes this optional

I am doing this via mobile I will check on my computer later
This commit is contained in:
JDJG Inc. Official authored and GitHub committed 2021-10-04 13:53:24 -04:00
1 parent 655692d2cc
commit 6a9083a504
1 file changed
+1 -1
+1 -1
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