+
    rpÐj+'  ã                  óê  € R t ^ RIHt ^ RIHtHtHtHtHtH	t	H
t
 ]'       d    ^ RIHtHt ^ RIHt ]
]]3,          t^RIHt R(tRt ! R R]4      t ! R R]4      t ! R R]4      t ! R R]4      tR)R R llt ! R R	]4      t ! R R
]4      t ! R R]4      t ! R R]4      t ! R  R]4      t ! R! R]4      t  ! R" R]4      t! ! R# R]4      t" ! R$ R]4      t# ! R% R]4      t$ ! R& R]4      t%R'# )*a:  
The MIT License (MIT)

Copyright (c) 2015-present Rapptz

Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
)Úannotations)ÚDictÚListÚOptionalÚTYPE_CHECKINGÚAnyÚTupleÚUnion)ÚClientResponseÚClientWebSocketResponse)ÚResponse)ÚInteractionÚDiscordExceptionÚClientExceptionÚGatewayNotFoundÚHTTPExceptionÚRateLimitedÚ	ForbiddenÚNotFoundÚDiscordServerErrorÚInvalidDataÚLoginFailureÚConnectionClosedÚPrivilegedIntentsRequiredÚInteractionRespondedÚMissingApplicationIDÚFFmpegProcessErrorz¡Client does not have an application_id set. Either the function was called before on_ready was called or application_id was not passed to the Client constructor.c                  ó   € ] tR t^<tRtRtR# )r   zBase exception class for discord.py

Ideally speaking, this could be caught to handle any exceptions raised from this library.
© N©Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú__static_attributes__r   ó    Ú@/opt/hermes/.venv/lib/python3.14/site-packages/discord/errors.pyr   r   <   ó   † ñó
 	r&   c                  ó   € ] tR t^EtRtRtR# )r   z‹Exception that's raised when an operation in the :class:`Client` fails.

These are usually for exceptions that happened due to user input.
r   Nr   r   r&   r'   r   r   E   r(   r&   c                  ó   € ] tR t^NtRtRtR# )r   zMException that's raised when an FFmpeg process fails.

.. versionadded:: 2.7
r   Nr   r   r&   r'   r   r   N   r(   r&   c                  ó,   a € ] tR t^WtRtV 3R ltRtV ;t# )r   zKAn exception that is raised when the gateway for Discord could not be foundc                	ó*   <€ R p\         SV `  V4       R# )z0The gateway to connect to discord was not found.N)ÚsuperÚ__init__©ÚselfÚmessageÚ	__class__s   & €r'   r.   ÚGatewayNotFound.__init__Z   s   ø€ ØDˆÜ‰Ñ˜Ö!r&   r   ©r    r!   r"   r#   r$   r.   r%   Ú__classcell__©r2   s   @r'   r   r   W   s   ø† ÙU÷"ó "r&   c               ó$   € V ^8„  d   QhRRRRRR/# )é   ÚdzDict[str, Any]ÚkeyÚstrÚreturnzDict[str, str]r   )Úformats   "r'   Ú__annotate__r>   _   s!   € ÷ ñ ˜>ð °ð ¸^ñ r&   c                ó°  € . pV P                  4        F|  w  r4V'       d   VR ,           V,           MTp\        V\        4      '       d6    VR,          pVP                  VRP	                  R V 4       4      34       Kj  VP                  WT34       K~  	  \        V4      #   \
         d-    TP                  \        YE4      P                  4       4        KÁ  i ; i)Ú.Ú_errorsÚ c              3  óD   "  € T F  qP                  R R4      x € K  	  R# 5i)r1   Ú N)Úget)Ú.0Úxs   & r'   Ú	<genexpr>Ú&_flatten_error_dict.<locals>.<genexpr>j   s   é € Ð/VÉgÈ·±°iÀ×0DÐ0DËgùs   ‚ )ÚitemsÚ
isinstanceÚdictÚappendÚjoinÚKeyErrorÚextendÚ_flatten_error_dict)r9   r:   rJ   ÚkÚvÚnew_keyrA   s   &&     r'   rQ   rQ   _   s°   € Ø#%€EØ—‘–	‰ˆß#&�#˜•)˜a–-¨Aˆä�aœ×ÒðYØ01°)µ�ð —‘˜g s§x¡xÑ/VÉgÓ/VÓ'VÐWÖXà�L‰L˜'˜Ö&ñ ô �‹;Ðøô ô FØ—‘Ô0°Ó<×BÑBÓD×EðFús   Á		BÂ3CÃCc                  ó2   a € ] tR t^qtRtR V 3R lltRtV ;t# )r   aü  Exception that's raised when an HTTP request operation fails.

Attributes
------------
response: :class:`aiohttp.ClientResponse`
    The response of the failed HTTP request. This is an
    instance of :class:`aiohttp.ClientResponse`. In some cases
    this could also be a :class:`requests.Response`.

text: :class:`str`
    The text of the error. Could be an empty string.
status: :class:`int`
    The status code of the HTTP request.
code: :class:`int`
    The Discord specific error code for the failure.
c               ó    € V ^8„  d   QhRRRR/# )r8   ÚresponseÚ_ResponseTyper1   z$Optional[Union[str, Dict[str, Any]]]r   )r=   s   "r'   r>   ÚHTTPException.__annotate__ƒ   s   € ÷ Jñ J ð JÐ9]ñ Jr&   c                	óŽ  <€ Wn         VP                  V n        V  V  \        V\        4      '       d—   VP	                  R ^ 4      V n        VP	                  RR4      pVP	                  R4      pW@n        V'       dH   \        V4      pRP                  R VP                  4        4       4      pVR,           V,           V n
        MW0n
        MT;'       g    RV n
        ^ V n        Rp\        V P                  4      '       d
   VR,          p\        SV `5  VP                  V P                   V P
                  V P                  4      4       R# )	Úcoder1   rD   ÚerrorsÚ
c              3  ó4   "  € T F  pR V,          x € K  	  R# 5i)z	In %s: %sNr   )rF   Úts   & r'   rH   Ú)HTTPException.__init__.<locals>.<genexpr>�   s   é € Ð#L¹^¸ K°!§O¢O»^ùs   ‚z'{0.status} {0.reason} (error code: {1})z: {2}N)rW   ÚstatusrK   rL   rE   r[   rA   rQ   rN   rJ   ÚtextÚlenr-   r.   r=   )r0   rW   r1   Úbaser\   ÚhelpfulÚfmtr2   s   &&&    €r'   r.   ÚHTTPException.__init__ƒ   sì   ø€ Ø'/ŒØ#Ÿ?™?ˆŒÙÙÜ�gœt×$Ò$ØŸ™ F¨AÓ.ˆDŒIØ—;‘;˜y¨"Ó-ˆDØ—[‘[ Ó*ˆFØ5;ŒLßÜ,¨VÓ4�ØŸ)™)Ñ#L¸V¿\¹\¼^Ó#LÓL�Ø  4�K¨'Õ1�•	à •	àŸ˜ 2ˆDŒIØˆDŒIà7ˆÜˆt�y‰y�>Š>Ø�7�NˆCä‰Ñ˜Ÿ™ D§M¡M°4·9±9¸d¿i¹iÓHÖIr&   )rA   r[   rW   ra   rb   r4   r6   s   @r'   r   r   q   s   ø† ñ÷"Jö Jr&   c                  ó2   a € ] tR t^žtRtR V 3R lltRtV ;t# )r   a   Exception that's raised for when status code 429 occurs
and the timeout is greater than the configured maximum using
the ``max_ratelimit_timeout`` parameter in :class:`Client`.

This is not raised during global ratelimits.

Since sometimes requests are halted pre-emptively before they're
even made, this **does not** subclass :exc:`HTTPException`.

.. versionadded:: 2.0

Attributes
------------
retry_after: :class:`float`
    The amount of seconds that the client should wait before retrying
    the request.
c               ó   € V ^8„  d   QhRR/# )r8   Úretry_afterÚfloatr   )r=   s   "r'   r>   ÚRateLimited.__annotate__±   s   € ÷ Tñ T Eñ Tr&   c                	ó<   <€ Wn         \        SV `	  R VR R24       R# )zToo many requests. Retry in z.2fz	 seconds.N)rj   r-   r.   )r0   rj   r2   s   &&€r'   r.   ÚRateLimited.__init__±   s#   ø€ Ø&ÔÜ‰ÑÐ7¸ÀCÐ7HÈ	ÐRÖSr&   )rj   r4   r6   s   @r'   r   r   ž   s   ø† ñ÷$Tö Tr&   c                  ó   € ] tR t^¶tRtRtR# )r   z[Exception that's raised for when status code 403 occurs.

Subclass of :exc:`HTTPException`
r   Nr   r   r&   r'   r   r   ¶   r(   r&   c                  ó   € ] tR t^¿tRtRtR# )r   z[Exception that's raised for when status code 404 occurs.

Subclass of :exc:`HTTPException`
r   Nr   r   r&   r'   r   r   ¿   r(   r&   c                  ó   € ] tR t^ÈtRtRtR# )r   z{Exception that's raised for when a 500 range status code occurs.

Subclass of :exc:`HTTPException`.

.. versionadded:: 1.5
r   Nr   r   r&   r'   r   r   È   s   † ñó 	r&   c                  ó   € ] tR t^ÓtRtRtR# )r   zZException that's raised when the library encounters unknown
or invalid data from Discord.
r   Nr   r   r&   r'   r   r   Ó   s   † ñó 	r&   c                  ó   € ] tR t^ÛtRtRtR# )r   zŠException that's raised when the :meth:`Client.login` function
fails to log you in from improper credentials or some other misc.
failure.
r   Nr   r   r&   r'   r   r   Û   r(   r&   c                  ó:   a € ] tR t^ätRtRR/R V 3R llltRtV ;t# )r   aO  Exception that's raised when the gateway connection is
closed for reasons that could not be handled internally.

Attributes
-----------
code: :class:`int`
    The close code of the websocket.
reason: :class:`str`
    The reason provided for the closure.
shard_id: Optional[:class:`int`]
    The shard ID that got closed if applicable.
r[   Nc               ó$   € V ^8„  d   QhRRRRRR/# )r8   Úsocketr   Úshard_idúOptional[int]r[   r   )r=   s   "r'   r>   ÚConnectionClosed.__annotate__ò   s(   € ÷ Xñ XÐ6ð XÀ]ð XÐZgñ Xr&   c               	ó¾   <€ T;'       g    VP                   ;'       g    RV n        RV n        W n        \        SV `  RV P                   RV P                   24       R# )é   rD   z	Shard ID z WebSocket closed with Néÿÿÿÿ)Ú
close_coder[   Úreasonrw   r-   r.   )r0   rv   rw   r[   r2   s   &&$$€r'   r.   ÚConnectionClosed.__init__ò   sQ   ø€ ð ×8Ð8 ×!2Ñ!2×8Ð8°bˆŒ	àˆŒØ'/ŒÜ‰Ñ˜9 T§]¡] OÐ3JÈ4Ï9É9È+ÐVÖWr&   )r[   r~   rw   r4   r6   s   @r'   r   r   ä   s#   ø† ñðXÐjn÷ X÷ Xð Xr&   c                  ó2   a € ] tR t^ütRtR V 3R lltRtV ;t# )r   a¼  Exception that's raised when the gateway is requesting privileged intents
but they're not ticked in the developer page yet.

Go to https://discord.com/developers/applications/ and enable the intents
that are required. Currently these are as follows:

- :attr:`Intents.members`
- :attr:`Intents.presences`
- :attr:`Intents.message_content`

Attributes
-----------
shard_id: Optional[:class:`int`]
    The shard ID that got closed if applicable.
c               ó   € V ^8„  d   QhRR/# )r8   rw   rx   r   )r=   s   "r'   r>   Ú&PrivilegedIntentsRequired.__annotate__  s   € ÷ )ñ ) ñ )r&   c                	óB   <€ Wn         R p\        SV `	  W!,          4       R# )aQ  Shard ID %s is requesting privileged intents that have not been explicitly enabled in the developer portal. It is recommended to go to https://discord.com/developers/applications/ and explicitly enable the privileged intents within your application's page. If this is not possible, then consider disabling the privileged intents instead.N)rw   r-   r.   )r0   rw   Úmsgr2   s   && €r'   r.   Ú"PrivilegedIntentsRequired.__init__  s$   ø€ Ø'/ŒðPð 	ô 	‰Ñ˜�Ö(r&   )rw   r4   r6   s   @r'   r   r   ü   s   ø† ñ÷ )ö )r&   c                  ó2   a € ] tR tRtRtR V 3R lltRtV ;t# )r   i  a:  Exception that's raised when sending another interaction response using
:class:`InteractionResponse` when one has already been done before.

An interaction can only respond once.

.. versionadded:: 2.0

Attributes
-----------
interaction: :class:`Interaction`
    The interaction that's already been responded to.
c               ó   € V ^8„  d   QhRR/# )r8   Úinteractionr   r   )r=   s   "r'   r>   Ú!InteractionResponded.__annotate__&  s   € ÷ Rñ R Kñ Rr&   c                	ó2   <€ Wn         \        SV `	  R 4       R# )z5This interaction has already been responded to beforeN)rˆ   r-   r.   )r0   rˆ   r2   s   &&€r'   r.   ÚInteractionResponded.__init__&  s   ø€ Ø(3ÔÜ‰ÑÐPÖQr&   )rˆ   r4   r6   s   @r'   r   r     s   ø† ñ÷Rö Rr&   c                  ó6   a € ] tR tRtRtRR V 3R llltRtV ;t# )r   i+  aØ  An exception raised when the client does not have an application ID set.

An application ID is required for syncing application commands and various
other application tasks such as SKUs or application emojis.

This inherits from :exc:`~discord.app_commands.AppCommandError`
and :class:`~discord.ClientException`.

.. versionadded:: 2.0

.. versionchanged:: 2.5
    This is now exported to the ``discord`` namespace and now inherits from :class:`~discord.ClientException`.
c               ó   € V ^8„  d   QhRR/# )r8   r1   zOptional[str]r   )r=   s   "r'   r>   Ú!MissingApplicationID.__annotate__:  s   € ÷ 6ñ 6 ñ 6r&   c                	óB   <€ \         ST `  T;'       g    \        4       R # ©N)r-   r.   ÚAPP_ID_NOT_FOUNDr/   s   &&€r'   r.   ÚMissingApplicationID.__init__:  s   ø€ Ü‰Ñ˜×4Ð4Ô$4Ö5r&   r   r�   r4   r6   s   @r'   r   r   +  s   ø† ñ÷6÷ 6ð 6r&   N)r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   )rD   )&r$   Ú
__future__r   Útypingr   r   r   r   r   r   r	   Úaiohttpr
   r   Úrequestsr   rX   Úinteractionsr   Ú__all__r‘   Ú	Exceptionr   r   r   r   rQ   r   r   r   r   r   r   r   r   r   r   r   r   r&   r'   Ú<module>rš      s  ðñõ0 #ß I× IÑ Içß?Ý!à˜.¨(Ð2Õ3€Må)ð€ð&Mð ô	�yô 	ô	Ð&ô 	ô	˜ô 	ô"Ð&ô "÷ô$*JÐ$ô *JôZTÐ"ô Tô0	�ô 	ô	ˆ}ô 	ô	˜ô 	ô	�/ô 	ô	�?ô 	ôX�ô Xô0) ô )ô8R˜?ô Rô&6˜?ö 6r&   