mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-08 12:48:39 +00:00
Allow specifying float default values for app commands
This commit is contained in:
parent
68b7ee6b99
commit
6def5c9131
@ -541,6 +541,7 @@ ALLOWED_DEFAULTS: Dict[AppCommandOptionType, Tuple[Type[Any], ...]] = {
|
|||||||
AppCommandOptionType.string: (str, NoneType),
|
AppCommandOptionType.string: (str, NoneType),
|
||||||
AppCommandOptionType.integer: (int, NoneType),
|
AppCommandOptionType.integer: (int, NoneType),
|
||||||
AppCommandOptionType.boolean: (bool, NoneType),
|
AppCommandOptionType.boolean: (bool, NoneType),
|
||||||
|
AppCommandOptionType.number: (float, NoneType),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user