From 0791afe687ec1032cb2c30054bc886d0e59cfdb2 Mon Sep 17 00:00:00 2001 From: chrispy <57511929+lightlybakedman@users.noreply.github.com> Date: Wed, 1 Feb 2023 01:02:36 +1100 Subject: [PATCH] [commands] Update Range examples to match app_commands.Range --- discord/ext/commands/converter.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/discord/ext/commands/converter.py b/discord/ext/commands/converter.py index 4df966b8b..ed48d2760 100644 --- a/discord/ext/commands/converter.py +++ b/discord/ext/commands/converter.py @@ -1061,6 +1061,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. Inside a :class:`HybridCommand` this functions equivalently to :class:`discord.app_commands.Range`.