From e65c7176d5cc6ca70b425b910a859446a5647ac3 Mon Sep 17 00:00:00 2001 From: JustaSqu1d <89910983+JustaSqu1d@users.noreply.github.com> Date: Thu, 27 Jun 2024 21:39:16 -0700 Subject: [PATCH] docs: limits on integer and number option types (#2462) 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 --- docs/api/enums.rst | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/docs/api/enums.rst b/docs/api/enums.rst index b54f962e47..7cf7526575 100644 --- a/docs/api/enums.rst +++ b/docs/api/enums.rst @@ -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. @@ -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