Raise special CommandSyncFailure during sync for better errors

This is parsed from the error to allow for users to better debug
what exactly is causing the issue in sync.
This commit is contained in:
Rapptz
2022-08-12 10:20:33 -04:00
parent a9025ca3d1
commit 1fa7d7e402
5 changed files with 82 additions and 7 deletions

View File

@ -721,6 +721,9 @@ Exceptions
.. autoexception:: discord.app_commands.MissingApplicationID
:members:
.. autoexception:: discord.app_commands.CommandSyncFailure
:members:
Exception Hierarchy
~~~~~~~~~~~~~~~~~~~~
@ -743,3 +746,6 @@ Exception Hierarchy
- :exc:`~discord.app_commands.CommandSignatureMismatch`
- :exc:`~discord.app_commands.CommandNotFound`
- :exc:`~discord.app_commands.MissingApplicationID`
- :exc:`~discord.app_commands.CommandSyncFailure`
- :exc:`~discord.HTTPException`
- :exc:`~discord.app_commands.CommandSyncFailure`