Skip to content

Commit e65c717

Browse files
JustaSqu1dpre-commit-ci[bot]DorukyumLulalaby
authored
docs: limits on integer and number option types (#2462)
Signed-off-by: JustaSqu1d <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Dorukyum <[email protected]> Co-authored-by: Lala Sabathil <[email protected]>
1 parent 7ae3928 commit e65c717

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

docs/api/enums.rst

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,12 @@ of :class:`enum.Enum`.
2929
A string.
3030
.. attribute:: integer
3131

32-
An integer.
32+
An integer between -2⁵³ and 2⁵³.
33+
34+
.. note::
35+
36+
IDs, such as 881224361015672863, are often too big for this input type.
37+
3338
.. attribute:: boolean
3439

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

50-
A floating number.
55+
A floating-point number between -2⁵³ and 2⁵³.
56+
57+
.. note::
58+
59+
IDs, such as 881224361015672863, are often too big for this input type.
5160

5261
.. attribute:: attachment
5362

0 commit comments

Comments
 (0)