From fcc4c9d57e08970a6159daebfc990bc249257712 Mon Sep 17 00:00:00 2001 From: JustaSqu1d <89910983+JustaSqu1d@users.noreply.github.com> Date: Tue, 24 Mar 2026 21:02:33 +1100 Subject: [PATCH 1/3] docs: SlashCommandOptionType enum to use LaTeX --- docs/api/enums.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api/enums.rst b/docs/api/enums.rst index 159d272c48..d99c9a3503 100644 --- a/docs/api/enums.rst +++ b/docs/api/enums.rst @@ -29,7 +29,7 @@ of :class:`enum.Enum`. A string. .. attribute:: integer - An integer between -2⁵³ and 2⁵³. + An integer between :math:`-2^53` and :math:`2^53`. .. note:: @@ -52,7 +52,7 @@ of :class:`enum.Enum`. A mentionable (user or role). .. attribute:: number - A floating-point number between -2⁵³ and 2⁵³. + A floating-point number between :math:`-2^53` and :math:`2^53`. .. note:: From fa9240efb8ec9642365175f20a9e6f3d25aacfa7 Mon Sep 17 00:00:00 2001 From: JustaSqu1d <89910983+JustaSqu1d@users.noreply.github.com> Date: Tue, 24 Mar 2026 21:13:06 +1100 Subject: [PATCH 2/3] docs: fix exponents --- docs/api/enums.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api/enums.rst b/docs/api/enums.rst index d99c9a3503..ef1d971635 100644 --- a/docs/api/enums.rst +++ b/docs/api/enums.rst @@ -29,7 +29,7 @@ of :class:`enum.Enum`. A string. .. attribute:: integer - An integer between :math:`-2^53` and :math:`2^53`. + An integer between :math:`-{2}^{53}` and :math:`{2}^{53}`. .. note:: @@ -52,7 +52,7 @@ of :class:`enum.Enum`. A mentionable (user or role). .. attribute:: number - A floating-point number between :math:`-2^53` and :math:`2^53`. + A floating-point number between :math:`-{2}^{53}` and :math:`{2}^{53}`. .. note:: From 2081914c05a72194e499e56c9bf17cf57529d306 Mon Sep 17 00:00:00 2001 From: JustaSqu1d <89910983+JustaSqu1d@users.noreply.github.com> Date: Tue, 24 Mar 2026 21:28:17 +1100 Subject: [PATCH 3/3] docs: explicitly state the end points are not included --- docs/api/enums.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api/enums.rst b/docs/api/enums.rst index ef1d971635..b0a31982dd 100644 --- a/docs/api/enums.rst +++ b/docs/api/enums.rst @@ -29,7 +29,7 @@ of :class:`enum.Enum`. A string. .. attribute:: integer - An integer between :math:`-{2}^{53}` and :math:`{2}^{53}`. + An integer where :math:`-2^{53} < x < 2^{53}`. .. note:: @@ -52,7 +52,7 @@ of :class:`enum.Enum`. A mentionable (user or role). .. attribute:: number - A floating-point number between :math:`-{2}^{53}` and :math:`{2}^{53}`. + A floating-point number where :math:`-2^{53} < x < 2^{53}`. .. note::