[commands] Add Range converter

This allows hybrid commands to also have a range annotation
This commit is contained in:
Rapptz
2022-04-11 21:10:47 -04:00
parent 3c4b22b623
commit 896932faf1
4 changed files with 130 additions and 5 deletions

View File

@ -468,6 +468,8 @@ Converters
.. autoclass:: discord.ext.commands.Greedy()
.. autoclass:: discord.ext.commands.Range()
.. autofunction:: discord.ext.commands.run_converters
Flag Converter
@ -626,6 +628,9 @@ Exceptions
.. autoexception:: discord.ext.commands.BadBoolArgument
:members:
.. autoexception:: discord.ext.commands.RangeError
:members:
.. autoexception:: discord.ext.commands.MissingPermissions
:members:
@ -713,6 +718,7 @@ Exception Hierarchy
- :exc:`~.commands.ScheduledEventNotFound`
- :exc:`~.commands.PartialEmojiConversionFailure`
- :exc:`~.commands.BadBoolArgument`
- :exc:`~.commands.RangeError`
- :exc:`~.commands.ThreadNotFound`
- :exc:`~.commands.FlagError`
- :exc:`~.commands.BadFlagArgument`