Raise an exception if an interaction has been responded before

Fix #7153
This commit is contained in:
Rapptz
2021-07-03 00:30:32 -04:00
parent b7b75e2b1f
commit 7ca90874b9
3 changed files with 42 additions and 4 deletions

View File

@ -3862,6 +3862,8 @@ The following exceptions are thrown by the library.
.. autoexception:: PrivilegedIntentsRequired
.. autoexception:: InteractionResponded
.. autoexception:: discord.opus.OpusError
.. autoexception:: discord.opus.OpusNotLoaded
@ -3879,6 +3881,7 @@ Exception Hierarchy
- :exc:`LoginFailure`
- :exc:`ConnectionClosed`
- :exc:`PrivilegedIntentsRequired`
- :exc:`InteractionResponded`
- :exc:`NoMoreItems`
- :exc:`GatewayNotFound`
- :exc:`HTTPException`