Change ValueError on max commands reached to a more specific exception

This commit is contained in:
Rapptz
2022-03-31 09:34:48 -04:00
parent c11363f037
commit 34b2ff40b6
3 changed files with 46 additions and 7 deletions

View File

@ -575,6 +575,9 @@ Exceptions
.. autoexception:: discord.app_commands.CommandOnCooldown
:members:
.. autoexception:: discord.app_commands.MaxCommandsReached
:members:
.. autoexception:: discord.app_commands.CommandAlreadyRegistered
:members:
@ -600,6 +603,7 @@ Exception Hierarchy
- :exc:`~discord.app_commands.MissingPermissions`
- :exc:`~discord.app_commands.BotMissingPermissions`
- :exc:`~discord.app_commands.CommandOnCooldown`
- :exc:`~discord.app_commands.MaxCommandsReached`
- :exc:`~discord.app_commands.CommandAlreadyRegistered`
- :exc:`~discord.app_commands.CommandSignatureMismatch`
- :exc:`~discord.app_commands.CommandNotFound`