Browse Source

Allow specifying float default values for app commands

pull/7662/head
Rapptz 3 years ago
parent
commit
6def5c9131
  1. 1
      discord/app_commands/transformers.py

1
discord/app_commands/transformers.py

@ -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),
}

Loading…
Cancel
Save