mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-10-22 08:23:09 +00:00
Allow specifying float default values for app commands
This commit is contained in:
@@ -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),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user