Skip to content

Commit

Permalink
docs: limits on integer and number option types (#2462)
Browse files Browse the repository at this point in the history
Signed-off-by: JustaSqu1d <89910983+JustaSqu1d@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Dorukyum <53639936+Dorukyum@users.noreply.github.com>
Co-authored-by: Lala Sabathil <lala@pycord.dev>
  • Loading branch information
4 people committed Jun 28, 2024
1 parent 7ae3928 commit e65c717
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions docs/api/enums.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,12 @@ of :class:`enum.Enum`.
A string.
.. attribute:: integer

An integer.
An integer between -2⁵³ and 2⁵³.

.. note::

IDs, such as 881224361015672863, are often too big for this input type.

.. attribute:: boolean

A boolean.
Expand All @@ -47,7 +52,11 @@ of :class:`enum.Enum`.
A mentionable (user or role).
.. attribute:: number

A floating number.
A floating-point number between -2⁵³ and 2⁵³.

.. note::

IDs, such as 881224361015672863, are often too big for this input type.

.. attribute:: attachment

Expand Down

0 comments on commit e65c717

Please sign in to comment.