mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-20 16:00:29 +00:00
Add str and float examples to app_commands.Range documentation
Co-authored-by: Danny <1695103+Rapptz@users.noreply.github.com>
This commit is contained in:
parent
dc194409c4
commit
7f796a68ca
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user