diff options
| author | Josh <[email protected]> | 2021-07-29 09:53:58 +1000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-07-28 19:53:58 -0400 |
| commit | c059d43e98dafdba5ade16d1c1f9a018ee3c8b6f (patch) | |
| tree | c10a77b3674485f935280fec1d57c205cae8cc40 /discord | |
| parent | Add an example for the new dropdowns (diff) | |
| download | discord.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.py | 8 |
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, ] |