From 44ea19c2a5dfa8af9ee638c48bbce725ea20c3d0 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Mon, 15 Aug 2022 14:01:54 -0400 Subject: [PATCH] Fix time_snowflake not being documented --- discord/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/discord/utils.py b/discord/utils.py index 9e70e4a8c..ab5b4a60a 100644 --- a/discord/utils.py +++ b/discord/utils.py @@ -432,10 +432,10 @@ def snowflake_time(id: int, /) -> datetime.datetime: def time_snowflake(dt: datetime.datetime, /, *, high: bool = False) -> int: """Returns a numeric snowflake pretending to be created at the given date. - When using as the lower end of a range, use ``time_snowflake(high=False) - 1`` + When using as the lower end of a range, use ``time_snowflake(dt, high=False) - 1`` to be inclusive, ``high=True`` to be exclusive. - When using as the higher end of a range, use ``time_snowflake(high=True) + 1`` + When using as the higher end of a range, use ``time_snowflake(dt, high=True) + 1`` to be inclusive, ``high=False`` to be exclusive. .. versionchanged:: 2.0