Skip to content

Commit

Permalink
Update docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
dolfies committed Jan 12, 2025
1 parent 8b8dbca commit e3ad155
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions discord/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,9 +444,10 @@ def oauth_url(
return url

def snowflake_worker_id(id: int, /) -> int:
"""Returns the worker id of the given snowflake
"""Returns the worker ID of the given snowflake
.. versionadded:: 2.1
Parameters
-----------
id: :class:`int`
Expand All @@ -460,9 +461,10 @@ def snowflake_worker_id(id: int, /) -> int:
return (id >> 17) & 0x1F

def snowflake_process_id(id: int, /) -> int:
"""Returns the process id of the given snowflake
"""Returns the process ID of the given snowflake
.. versionadded:: 2.1
Parameters
-----------
id: :class:`int`
Expand All @@ -480,6 +482,7 @@ def snowflake_increment(id: int, /) -> int:
For every generated ID on that process, this number is incremented.
.. versionadded:: 2.1
Parameters
-----------
id: :class:`int`
Expand Down

0 comments on commit e3ad155

Please sign in to comment.