Allow specifying float default values for app commands

This commit is contained in:
Rapptz 2022-03-12 09:41:23 -05:00
parent 68b7ee6b99
commit 6def5c9131

View File

@ -541,6 +541,7 @@ ALLOWED_DEFAULTS: Dict[AppCommandOptionType, Tuple[Type[Any], ...]] = {
AppCommandOptionType.string: (str, NoneType),
AppCommandOptionType.integer: (int, NoneType),
AppCommandOptionType.boolean: (bool, NoneType),
AppCommandOptionType.number: (float, NoneType),
}