mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-22 00:34:06 +00:00
[commands] Update Range examples to match app_commands.Range
This commit is contained in:
parent
346ade168e
commit
774219acae
@ -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`.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user