From 774219acaea0ddee616fcb62896f183e92150958 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 58c9f1876..cc7a3eb9b 100644 --- a/discord/ext/commands/converter.py +++ b/discord/ext/commands/converter.py @@ -1067,6 +1067,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`.