aboutsummaryrefslogtreecommitdiff
path: root/discord
diff options
context:
space:
mode:
authorJosh <[email protected]>2021-07-29 09:53:58 +1000
committerGitHub <[email protected]>2021-07-28 19:53:58 -0400
commitc059d43e98dafdba5ade16d1c1f9a018ee3c8b6f (patch)
treec10a77b3674485f935280fec1d57c205cae8cc40 /discord
parentAdd an example for the new dropdowns (diff)
downloaddiscord.py-c059d43e98dafdba5ade16d1c1f9a018ee3c8b6f.tar.xz
discord.py-c059d43e98dafdba5ade16d1c1f9a018ee3c8b6f.zip
Add Number type (10) to Application Command Option types
Diffstat (limited to 'discord')
-rw-r--r--discord/types/interactions.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/discord/types/interactions.py b/discord/types/interactions.py
index bed0837e..bbed83f2 100644
--- a/discord/types/interactions.py
+++ b/discord/types/interactions.py
@@ -53,7 +53,7 @@ class _ApplicationCommandOptionOptional(TypedDict, total=False):
options: List[ApplicationCommandOption]
-ApplicationCommandOptionType = Literal[1, 2, 3, 4, 5, 6, 7, 8, 9]
+ApplicationCommandOptionType = Literal[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
class ApplicationCommandOption(_ApplicationCommandOptionOptional):
@@ -122,12 +122,18 @@ class _ApplicationCommandInteractionDataOptionSnowflake(_ApplicationCommandInter
value: Snowflake
+class _ApplicationCommandInteractionDataOptionNumber(_ApplicationCommandInteractionDataOption):
+ type: Literal[10]
+ value: float
+
+
ApplicationCommandInteractionDataOption = Union[
_ApplicationCommandInteractionDataOptionString,
_ApplicationCommandInteractionDataOptionInteger,
_ApplicationCommandInteractionDataOptionSubcommand,
_ApplicationCommandInteractionDataOptionBoolean,
_ApplicationCommandInteractionDataOptionSnowflake,
+ _ApplicationCommandInteractionDataOptionNumber,
]