mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-07 20:28:38 +00:00
Remove NoMoreItems
This commit is contained in:
parent
b77cf500a2
commit
01906f37f1
@ -40,7 +40,6 @@ if TYPE_CHECKING:
|
|||||||
__all__ = (
|
__all__ = (
|
||||||
'DiscordException',
|
'DiscordException',
|
||||||
'ClientException',
|
'ClientException',
|
||||||
'NoMoreItems',
|
|
||||||
'GatewayNotFound',
|
'GatewayNotFound',
|
||||||
'HTTPException',
|
'HTTPException',
|
||||||
'Forbidden',
|
'Forbidden',
|
||||||
@ -72,12 +71,6 @@ class ClientException(DiscordException):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class NoMoreItems(DiscordException):
|
|
||||||
"""Exception that is raised when an async iteration operation has no more items."""
|
|
||||||
|
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
class GatewayNotFound(DiscordException):
|
class GatewayNotFound(DiscordException):
|
||||||
"""An exception that is raised when the gateway for Discord could not be found"""
|
"""An exception that is raised when the gateway for Discord could not be found"""
|
||||||
|
|
||||||
|
@ -4053,8 +4053,6 @@ The following exceptions are thrown by the library.
|
|||||||
|
|
||||||
.. autoexception:: LoginFailure
|
.. autoexception:: LoginFailure
|
||||||
|
|
||||||
.. autoexception:: NoMoreItems
|
|
||||||
|
|
||||||
.. autoexception:: HTTPException
|
.. autoexception:: HTTPException
|
||||||
:members:
|
:members:
|
||||||
|
|
||||||
@ -4091,7 +4089,6 @@ Exception Hierarchy
|
|||||||
- :exc:`ConnectionClosed`
|
- :exc:`ConnectionClosed`
|
||||||
- :exc:`PrivilegedIntentsRequired`
|
- :exc:`PrivilegedIntentsRequired`
|
||||||
- :exc:`InteractionResponded`
|
- :exc:`InteractionResponded`
|
||||||
- :exc:`NoMoreItems`
|
|
||||||
- :exc:`GatewayNotFound`
|
- :exc:`GatewayNotFound`
|
||||||
- :exc:`HTTPException`
|
- :exc:`HTTPException`
|
||||||
- :exc:`Forbidden`
|
- :exc:`Forbidden`
|
||||||
|
@ -791,6 +791,9 @@ The return type of the following methods has been changed to an :term:`asynchron
|
|||||||
- :meth:`Guild.fetch_members`
|
- :meth:`Guild.fetch_members`
|
||||||
- :meth:`Reaction.users`
|
- :meth:`Reaction.users`
|
||||||
|
|
||||||
|
The ``NoMoreItems`` exception was removed as calling :func:`anext` or :meth:`~object.__anext__` on an
|
||||||
|
:term:`asynchronous iterator` will now raise :class:`StopAsyncIteration`.
|
||||||
|
|
||||||
Removal of ``InvalidArgument`` Exception
|
Removal of ``InvalidArgument`` Exception
|
||||||
-------------------------------------------
|
-------------------------------------------
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user