Skip to content

Commit

Permalink
Docstring changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Shell1010 authored and dolfies committed Jan 12, 2025
1 parent 83fc78f commit 8b8dbca
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions discord/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,10 +462,12 @@ def snowflake_worker_id(id: int, /) -> int:
def snowflake_process_id(id: int, /) -> int:
"""Returns the process id of the given snowflake
Paramaters
.. versionadded:: 2.1
Parameters
-----------
id: :class:`int`
The snowflake ID.
Returns
--------
:class:`int`
Expand All @@ -476,11 +478,13 @@ def snowflake_process_id(id: int, /) -> int:
def snowflake_increment(id: int, /) -> int:
"""Returns the increment of the given snowflake.
For every generated ID on that process, this number is incremented.
Paramaters
.. versionadded:: 2.1
Parameters
-----------
id: :class:`int`
The snowflake ID.
Returns
--------
:class:`int`
Expand Down

0 comments on commit 8b8dbca

Please sign in to comment.