From 7f796a68ca0185b1bfa9a338d3314eb7450f3170 Mon Sep 17 00:00:00 2001 From: chrispy <57511929+lightlybakedman@users.noreply.github.com> Date: Wed, 11 Jan 2023 08:24:04 +1100 Subject: [PATCH] Add str and float examples to app_commands.Range documentation Co-authored-by: Danny <1695103+Rapptz@users.noreply.github.com> --- discord/app_commands/transformers.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/discord/app_commands/transformers.py b/discord/app_commands/transformers.py index c481e40f5..5f2649dcb 100644 --- a/discord/app_commands/transformers.py +++ b/discord/app_commands/transformers.py @@ -556,6 +556,8 @@ else: - ``Range[int, 10]`` means the minimum is 10 with no maximum. - ``Range[int, None, 10]`` means the maximum is 10 with no minimum. - ``Range[int, 1, 10]`` means the minimum is 1 and the maximum is 10. + - ``Range[float, 1.0, 5.0]`` means the minimum is 1.0 and the maximum is 5.0. + - ``Range[str, 1, 10]`` means the minimum length is 1 and the maximum length is 10. .. versionadded:: 2.0