Makes this optional
I am doing this via mobile I will check on my computer later
This commit is contained in:
parent
655692d2cc
commit
6a9083a504
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user