+
    rpÐj½  ã                  óÌ  a € 0 t $ R t^ RIHt ^ RIt^ RIt^ RIt^ RIt^ RIt^ RI	H
t ^ RIHtHtHtHtHtHtHtHtHtHtHtHt ^ RIt^RIHt ^RIHtHtHtH t  ^RI!H"t"H#t# ^RI$H%t%H&t& ^R	I'H(t(H)t) ^R
I*H+t+H,t, R)t-]P\                  ! ]/4      t0]'       df   ^ RI1H2t2 ^ RI3H4t4 ^RI5H6t6 ^RI7H8t8 ^RI9H:t: ^RI;H<t< ^RI!H=t= ^RI>H?t? ^RI@HAtA ^RIBHCtCHDtDHEtE ^RIFHGtH ^RIIH"tJ ^RIKHLtL ]! R]MR7      tN ^ RIOHPtPHQtQ ]P¦                  tSR]TR&    ! R R 4      tU ! R! R"4      tV ! R# R$]P®                  4      tX]X! 4       tYR% R& ltZ ! R' R]"4      t[ ! R( R]+4      t\R#   ]R d     Lhi ; i)*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.
)ÚannotationsN)Úquote)ÚAnyÚDictÚListÚLiteralÚOptionalÚTYPE_CHECKINGÚSequenceÚTupleÚUnionÚTypeVarÚTypeÚoverload)Úutils)ÚHTTPExceptionÚ	ForbiddenÚNotFoundÚDiscordServerError)ÚMessageÚMessageFlags)ÚRouteÚhandle_message_parameters)ÚPartialMessageableÚForumTag)ÚBaseWebhookÚ_WebhookStateÚSyncWebhookÚSyncWebhookMessage)ÚSelf)ÚTracebackType)ÚFile)ÚEmbed)ÚPoll)ÚAllowedMentions)Ú
Attachment)Ú	Snowflake)ÚConnectionState)ÚBaseViewÚViewÚ
LayoutView)ÚWebhook)r   )ÚSnowflakeListÚBE)Úbound)ÚSessionÚResponser   ÚMISSINGc                  óF   € ] tR t^XtR R ltR R ltR R ltR R ltR	tR
# )ÚDeferredLockc               ó    € V ^8„  d   QhRRRR/# )é   Úlockzthreading.LockÚreturnÚNone© )Úformats   "ÚF/opt/hermes/.venv/lib/python3.14/site-packages/discord/webhook/sync.pyÚ__annotate__ÚDeferredLock.__annotate__Y   s   € ÷ +ñ +˜^ð +°ñ +ó    c                	ó    € Wn         R V n        R # ©N)r6   Údelta)Úselfr6   s   &&r;   Ú__init__ÚDeferredLock.__init__Y   s   € Ø$(Œ	Ø&*ˆŽ
r>   c               ó   € V ^8„  d   QhRR/# )r5   r7   r   r9   )r:   s   "r;   r<   r=   ]   s   € ÷ ñ ˜4ñ r>   c                	ó:   € V P                   P                  4        V # r@   )r6   Úacquire©rB   s   &r;   Ú	__enter__ÚDeferredLock.__enter__]   s   € Ø�	‰	×ÑÔØˆr>   c               ó    € V ^8„  d   QhRRRR/# )r5   rA   Úfloatr7   r8   r9   )r:   s   "r;   r<   r=   a   s   € ÷ ñ ˜eð ¨ñ r>   c                	ó   € Wn         R # r@   )rA   )rB   rA   s   &&r;   Údelay_byÚDeferredLock.delay_bya   s   € ØŽ
r>   c               ó(   € V ^8„  d   QhRRRRRRRR/# )	r5   Úexc_typezOptional[Type[BE]]ÚexczOptional[BE]Ú	tracebackzOptional[TracebackType]r7   r8   r9   )r:   s   "r;   r<   r=   d   s2   € ÷ ñ à$ðð ðð +ð	ð
 
ñr>   c                	óž   € V P                   '       d!   \        P                  ! V P                   4       V P                  P	                  4        R # r@   )rA   ÚtimeÚsleepr6   Úrelease)rB   rQ   rR   rS   s   &&&&r;   Ú__exit__ÚDeferredLock.__exit__d   s-   € ð �:�:ˆ:Ü�JŠJ�t—z‘zÔ"Ø�	‰	×ÑÖr>   )rA   r6   N)	Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__rC   rI   rN   rX   Ú__static_attributes__r9   r>   r;   r3   r3   X   s   † õ+õõ÷ñ r>   r3   c                  ó$  € ] tR t^otR tRRRRRRRRRRRR/R	 R
 lltRRRR/R R lltRR/R R lltRR/R R lltRR/R R llt	RRRRRRRRRRRR/R R llt
RR/R R lltRRRRRRRRRR/R R lltRR/R R lltR  R! ltR" R# ltR$tR# )%ÚWebhookAdapterc                	ó:   € \         P                  ! 4       V n        R # r@   )ÚweakrefÚWeakValueDictionaryÚ_locksrH   s   &r;   rC   ÚWebhookAdapter.__init__p   s   € ÜHO×HcÒHcÓHeˆŽr>   ÚpayloadNÚ	multipartÚfilesÚreasonÚ
auth_tokenÚparamsc               ó<   € V ^8„  d   QhRRRRRRRRR	R
RRRRRRRR/	# )r5   Úrouter   Úsessionr/   rf   úOptional[Dict[str, Any]]rg   úOptional[List[Dict[str, Any]]]rh   úOptional[Sequence[File]]ri   úOptional[str]rj   rk   r7   r   r9   )r:   s   "r;   r<   ÚWebhookAdapter.__annotate__s   sz   € ÷ xEñ xEàðxEð ðxEð
 *ðxEð 2ðxEð (ðxEð ðxEð "ðxEð )ðxEð 
ñxEr>   c               	ó*	  € / p	T;'       g    . pR p
VP                   VP                  3p V P                  V,          pVe+   RV	R&   \        P                  ! V4      P                  R4      p
Ve	   RV 2V	R&   Ve   \        VRR7      V	R&   R pR pR pVP                  pVP                  pVP                   p\        V4      ;_uu_ 4       p\        ^4       EFº  pV F  pVP                  VR	7       K  	  V'       dF   / pV F=  pVR
,          pVR8X  d   RVR,          /p
K   VR,          VR,          VR,          3VV&   K?  	   VP                  VVW¯W˜R7      ;_uu_ 4       p\         P#                  RVVVVP$                  4       RVn        VP$                  Vn        VP*                  ;'       g    R p V'       d/   VP,                  R,          R8X  d   \.        P0                  ! V4      pTP,                  P3                  R4      pTR8X  dP   TP$                  R8w  d?   \        P4                  ! T4      p\         P#                  RTT4       TP7                  T4       RTP$                  u;8”  d   ^È8¼  d   M MTuuR R R 4       u uuR R R 4       # TP$                  R8X  dq   TP,                  P3                  R4      '       g   \9        YÞ4      hRpTR,          p\         P;                  TTT4       \<        P>                  ! T4        R R R 4       EK9  TP$                  R8¼  d1   \<        P>                  ! ^T^,          ,           4        R R R 4       EKz  TP$                  R8X  d   \A        YÞ4      hTP$                  R8X  d   \C        YÞ4      h\9        YÞ4      h	  V'       d(   VP$                  R8¼  d   \I        WÞ4      h\9        WÞ4      h\K        R4      h  \         d)    \        P
                  ! 4       ;T P                  T&   p ELÂi ; i  \         d     EL*i ; i  + '       g   i     EKS  ; i  \D         dJ   pT^8  d=   TPF                  R9   d,   \<        P>                  ! ^T^,          ,           4        R p?EK¤  h R p?ii ; i  + '       g   i     R # ; i)Nzapplication/json; charset=utf-8zContent-Typezutf-8zBot ÚAuthorizationz/ )ÚsafezX-Audit-Log-Reason)ÚseekÚnameÚpayload_jsonÚvalueÚfilenameÚcontent_type)Údatarh   Úheadersrk   z4Webhook ID %s with %s %s has returned status code %szapplication/jsonzX-Ratelimit-RemainingÚ0i­  z>Webhook ID %s has exhausted its rate limit bucket (retry: %s).i,  ÚViaz8Webhook ID %s is rate limited. Retrying in %.2f seconds.Úretry_afteriô  i“  i”  z"Unreachable code in HTTP handling.)é6   iF'  )&Ú
webhook_idÚwebhook_tokenrd   ÚKeyErrorÚ	threadingÚLockr   Ú_to_jsonÚencodeÚurlquoteÚmethodÚurlr3   ÚrangeÚresetÚrequestÚ_logÚdebugÚstatus_codeÚencodingÚstatusÚtextr~   ÚjsonÚloadsÚgetÚ_parse_ratelimit_headerrN   r   ÚwarningrU   rV   r   r   ÚOSErrorÚerrnor   ÚRuntimeError)rB   rm   rn   rf   rg   rh   ri   rj   rk   r~   Úto_sendÚbucketr6   Úresponser}   Ú	file_datar‹   rŒ   rƒ   ÚattemptÚfileÚprx   Ú	remainingrA   Úfmtr�   Úes   &&&$$$$$$                   r;   r�   ÚWebhookAdapter.requests   s  € ð #%ˆØ—�˜ˆØ?CˆØ×"Ñ" E×$7Ñ$7Ð8ˆð	:Ø—;‘;˜vÕ&ˆDð ÒØ&GˆG�NÑ#Ü—n’n WÓ-×4Ñ4°WÓ=ˆGàÒ!Ø)-¨j¨\Ð':ˆG�OÑ$àÒÜ,4°VÀ$Ô,GˆGÐ(Ñ)à'+ˆØ59ˆØ.2ˆ	Ø—‘ˆØ�i‰iˆØ×%Ñ%ˆ
ä˜$×Ô 4Ü  Ÿ8�Û!�DØ—J‘J G�JÖ,ñ "÷ Ø "�IÛ&˜Ø  �y˜Ø >Ô1Ø'5°q¸µzÐ&BšGà/0°­}¸aÀ½jÈ!ÈNÕJ[Ð.\˜I d›Oñ 'ð<Ø Ÿ™Ø ¨'ÈGð )÷ ô à!ÜŸ
™
ØRØ&Ø"ØØ$×0Ñ0ôð -4˜Ô)à*2×*>Ñ*>˜œà'Ÿ}™}×4Ð4°˜ð!ß#¨×(8Ñ(8¸Õ(HÐL^Ô(^Ü'+§z¢z°$Ó'7 ð %-×$4Ñ$4×$8Ñ$8Ð9PÓ$Q˜	Ø$¨Ô+°×0DÑ0DÈÔ0KÜ$)×$AÒ$AÀ(Ó$K˜EÜ ŸJ™JØ `Ø *Ø %ôð
 !ŸM™M¨%Ô0à ×!5Ñ!5Ö<¸×<Ø#'÷Aó ÷  Òðb $×/Ñ/°3Ô6Ø#+×#3Ñ#3×#7Ñ#7¸×#>Ò#>Ü&3°HÓ&CÐ CØ"\˜Cà15°mÕ1D˜KÜ ŸL™L¨¨j¸+ÔFÜ ŸJšJ {Ô3Ø$÷Uò ðX $×/Ñ/°3Ô6Ü ŸJšJ q¨7°Q­;¥Ô7Ø$÷]ò ð` $×/Ñ/°3Ô6Ü"+¨HÓ";Ð;Ø%×1Ñ1°SÔ8Ü"*¨8Ó":Ð:ä"/°Ó"?Ð?ñG $÷V Ø×'Ñ'¨3Ô.Ü,¨XÓ<Ð<Ü# HÓ3Ð3äÐCÓDÐDøôK ô 	:Ü)2¯ªÓ)9Ð9ˆD�K‰K˜Ñ£$ð	:ûôj  (ô !Ú ð!ú÷%÷ ñ ûôn ô Ø ”{ q§w¡w°+Ô'=ÜŸ
š
 1 w°¥{¥?Ô3Þ Øûð	ú÷M  ×Ðúsâ   ªO Ã2RÃ;ARÅP*ÅAPÆ1P
Æ9.P
Ç'BPÉ5
P*É?RÊ1PÊ>APÌP*Ì
RÌ6PÍP*ÍRÍAPÎ	RÎ2RÏ/P Ï?P ÐPÐPÐPÐPÐP'Ð P*Ð$RÐ'P*Ð*Q>	Ð5<Q9	Ñ1RÑ8Q9	Ñ9Q>	Ñ>RÒR	Útokenc          
     ó,   € V ^8„  d   QhRRRRRRRRRR	/# )
r5   rƒ   Úintr©   rr   rn   r/   ri   r7   r8   r9   )r:   s   "r;   r<   rs   í   sC   € ÷ 	Mñ 	Màð	Mð ð		Mð
 ð	Mð ð	Mð 
ñ	Mr>   c               	óD   € \        R RVR7      pV P                  WSWBR7      # )ÚDELETEú/webhooks/{webhook_id}©rƒ   )ri   rj   ©r   r�   ©rB   rƒ   r©   rn   ri   rm   s   &&$$$ r;   Údelete_webhookÚWebhookAdapter.delete_webhookí   s&   € ô �hÐ 8ÀZÔPˆØ�|‰|˜E°6ˆ|ÓLÐLr>   c          
     ó,   € V ^8„  d   QhRRRRRRRRR	R
/# )r5   rƒ   r«   r©   Ústrrn   r/   ri   rr   r7   r8   r9   )r:   s   "r;   r<   rs   ø   s<   € ÷ 	;ñ 	;àð	;ð ð	;ð
 ð	;ð ð	;ð 
ñ	;r>   c               	óD   € \        R RWR7      pV P                  WSVR7      # )r­   ú&/webhooks/{webhook_id}/{webhook_token}©rƒ   r„   )ri   r°   r±   s   &&&$$ r;   Údelete_webhook_with_tokenÚ(WebhookAdapter.delete_webhook_with_tokenø   s'   € ô �hÐ HÐU_ÔuˆØ�|‰|˜E°6ˆ|Ó:Ð:r>   c               ó0   € V ^8„  d   QhRRRRRRRRR	R
RR/# ©r5   rƒ   r«   r©   rµ   rf   zDict[str, Any]rn   r/   ri   rr   r7   ÚWebhookPayloadr9   )r:   s   "r;   r<   rs     sN   € ÷ 
^ñ 
^àð
^ð ð
^ð  ð	
^ð ð
^ð ð
^ð 
ñ
^r>   c               	óF   € \        R RVR7      pV P                  WdWSVR7      # )ÚPATCHr®   r¯   )ri   rf   rj   r°   ©rB   rƒ   r©   rf   rn   ri   rm   s   &&&&$$ r;   Úedit_webhookÚWebhookAdapter.edit_webhook  s)   € ô �gÐ7ÀJÔOˆØ�|‰|˜E°6ÐW\ˆ|Ó]Ð]r>   c               ó0   € V ^8„  d   QhRRRRRRRRR	R
RR/# r¼   r9   )r:   s   "r;   r<   rs     sN   € ÷ 
Lñ 
Làð
Lð ð
Lð  ð	
Lð ð
Lð ð
Lð 
ñ
Lr>   c               	óD   € \        R RWR7      pV P                  WdWSR7      # )r¿   r·   r¸   )ri   rf   r°   rÀ   s   &&&&$$ r;   Úedit_webhook_with_tokenÚ&WebhookAdapter.edit_webhook_with_token  s'   € ô �gÐGÐT^ÔtˆØ�|‰|˜E°6ˆ|ÓKÐKr>   Ú	thread_idÚwaitFÚwith_componentsc               ó@   € V ^8„  d   QhRRRRRRRRR	R
RRRRRRRRRR/
# )r5   rƒ   r«   r©   rµ   rn   r/   rf   ro   rg   rp   rh   rq   rÇ   úOptional[int]rÈ   ÚboolrÉ   r7   ÚMessagePayloadr9   )r:   s   "r;   r<   rs     sz   € ÷ nñ nàðnð ðnð
 ðnð *ðnð 2ðnð (ðnð !ðnð ðnð ðnð 
ñnr>   c          	     	óŽ   € R \        V4      R\        V	4      /p
V'       d   WzR&   \        RRWR7      pV P                  W³WEWjR7      # )rÈ   rÉ   rÇ   ÚPOSTr·   r¸   ©rf   rg   rh   rk   )r«   r   r�   )rB   rƒ   r©   rn   rf   rg   rh   rÇ   rÈ   rÉ   rk   rm   s   &&&$$$$$$$  r;   Úexecute_webhookÚWebhookAdapter.execute_webhook  sM   € ð œ#˜d›)Ð%6¼¸OÓ8LÐMˆßØ"+�;ÑÜ�fÐFÐS]ÔsˆØ�|‰|˜E°GÐX]ˆ|ÓmÐmr>   c               ó0   € V ^8„  d   QhRRRRRRRRRR	R
R/# )r5   rƒ   r«   r©   rµ   Ú
message_idrn   r/   rÇ   rË   r7   rÍ   r9   )r:   s   "r;   r<   rs   .  sF   € ÷ ;ñ ;àð;ð ð;ð ð	;ð ð;ð !ð;ð 
ñ;r>   c               	ó\   € \        R RVVVR7      pVf   RMRV/pV P                  WdVR7      # )ÚGETú</webhooks/{webhook_id}/{webhook_token}/messages/{message_id}©rƒ   r„   rÔ   NrÇ   ©rk   r°   ©rB   rƒ   r©   rÔ   rn   rÇ   rm   rk   s   &&&&$$  r;   Úget_webhook_messageÚ"WebhookAdapter.get_webhook_message.  sC   € ô ØØJØ!ØØ!ô
ˆð #Ò*‘°¸iÐ0HˆØ�|‰|˜E°6ˆ|Ó:Ð:r>   c               ó@   € V ^8„  d   QhRRRRRRRRRR	R
RRRRRRRRR/
# )r5   rƒ   r«   r©   rµ   rÔ   rn   r/   rf   ro   rg   rp   rh   rq   rÇ   rË   rÉ   rÌ   r7   rÍ   r9   )r:   s   "r;   r<   rs   A  sz   € ÷ nñ nàðnð ðnð ð	nð ðnð *ðnð 2ðnð (ðnð !ðnð ðnð 
ñnr>   c          	     	ó|   € \        R RVVVR7      p
R\        V	4      /pV'       d   W‹R&   V P                  W¤WVW{R7      # )r¿   r×   rØ   rÉ   rÇ   rÐ   )r   r«   r�   )rB   rƒ   r©   rÔ   rn   rf   rg   rh   rÇ   rÉ   rm   rk   s   &&&&$$$$$$  r;   Úedit_webhook_messageÚ#WebhookAdapter.edit_webhook_messageA  sO   € ô ØØJØ!ØØ!ô
ˆð $¤S¨Ó%9Ð:ˆßØ"+�;ÑØ�|‰|˜E°GÐX]ˆ|ÓmÐmr>   c               ó0   € V ^8„  d   QhRRRRRRRRRR	R
R/# )r5   rƒ   r«   r©   rµ   rÔ   rn   r/   rÇ   rË   r7   r8   r9   )r:   s   "r;   r<   rs   Z  sF   € ÷ ;ñ ;àð;ð ð;ð ð	;ð ð;ð !ð;ð 
ñ;r>   c               	ó\   € \        R RVVVR7      pVf   RMRV/pV P                  WdVR7      # )r­   r×   rØ   NrÇ   rÙ   r°   rÚ   s   &&&&$$  r;   Údelete_webhook_messageÚ%WebhookAdapter.delete_webhook_messageZ  sC   € ô ØØJØ!ØØ!ô
ˆð #Ò*‘°¸iÐ0HˆØ�|‰|˜E°6ˆ|Ó:Ð:r>   c               ó(   € V ^8„  d   QhRRRRRRRR/# ©	r5   rƒ   r«   r©   rµ   rn   r/   r7   r½   r9   )r:   s   "r;   r<   rs   m  s8   € ÷ Fñ FàðFð ðFð
 ðFð 
ñFr>   c               	óD   € \        R RVR7      pV P                  WCVR7      # )rÖ   r®   r¯   )rn   rj   r°   ©rB   rƒ   r©   rn   rm   s   &&&$ r;   Úfetch_webhookÚWebhookAdapter.fetch_webhookm  s&   € ô �eÐ5À*ÔMˆØ�|‰|˜E¸uˆ|ÓEÐEr>   c               ó(   € V ^8„  d   QhRRRRRRRR/# ræ   r9   )r:   s   "r;   r<   rs   w  s2   € ÷ 4ñ 4àð4ð ð4ð
 ð4ð 
ñ4r>   c               	óB   € \        R RWR7      pV P                  WCR7      # )rÖ   r·   r¸   ©rn   r°   rè   s   &&&$ r;   Úfetch_webhook_with_tokenÚ'WebhookAdapter.fetch_webhook_with_tokenw  s%   € ô �eÐEÐR\ÔrˆØ�|‰|˜Eˆ|Ó3Ð3r>   )rd   )rZ   r[   r\   r]   rC   r�   r²   r¹   rÁ   rÅ   rÑ   rÛ   rß   rã   ré   rî   r^   r9   r>   r;   r`   r`   o   sX  † òfðxEð
 -1ðxEð 59ðxEð +/ðxEð !%ðxEð %)ðxEð ,0÷xEðt	Mð  $ð		Mð !%÷	Mð	;ð !%÷	;ð
^ð !%÷
^ð
Lð !%÷
Lðnð -1ðnð 59ðnð +/ðnð $(ðnð ðnð !&÷nð&;ð $(÷;ð&nð -1ðnð 59ðnð +/ðnð $(ðnð !&÷nð2;ð $(÷;õ&F÷4ñ 4r>   r`   c                  ó&   € ] tR tRt$ RtR]R&   RtR# )Ú_WebhookContexti‚  NzOptional[WebhookAdapter]Úadapterr9   )rZ   r[   r\   r]   rò   Ú__annotations__r^   r9   r>   r;   rñ   rñ   ‚  s   ‡ Ø(,€GÐ%×,r>   rñ   c               ó   € V ^8„  d   QhRR/# )r5   r7   r`   r9   )r:   s   "r;   r<   r<   ‰  s   € ÷ ñ ˜nñ r>   c                 ól   € \         P                  f   \        4       \         n        \         P                  # r@   )Ú_contextrò   r`   r9   r>   r;   Ú_get_webhook_adapterr÷   ‰  s%   € Ü×ÑÒÜ)Ó+ŒÔÜ×ÑÐr>   c                  óz   € ] tR tRt$ RtR]R&   R]R]R]R]R	R
R]/R R lltR R ltR R lt	RR
/R R llt
RtR
# )r   i�  zíRepresents a message sent from your webhook.

This allows you to edit or delete a message sent by your
webhook.

This inherits from :class:`discord.Message` with changes to
:meth:`edit` and :meth:`delete` to work.

.. versionadded:: 2.0
r   Ú_stateÚcontentÚembedsÚembedÚattachmentsÚallowed_mentionsNÚviewc               ó4   € V ^8„  d   QhRRRRRRRRR	R
RRRR/# )r5   rú   rr   rû   úSequence[Embed]rü   úOptional[Embed]rý   ú!Sequence[Union[Attachment, File]]rþ   úOptional[AllowedMentions]rÿ   úOptional[BaseView]r7   r   r9   )r:   s   "r;   r<   ÚSyncWebhookMessage.__annotate__�  s[   € ÷ M
ñ M
ð ðM
ð  ð	M
ð
 ðM
ð 7ðM
ð 4ðM
ð !ðM
ð 
ñM
r>   c               ó˜   € V P                   P                  P                  V P                  VVVVVV P                   P                  VR7      # )aÍ  Edits the message.

.. versionchanged:: 2.0
    This function will now raise :exc:`TypeError` or
    :exc:`ValueError` instead of ``InvalidArgument``.

Parameters
------------
content: Optional[:class:`str`]
    The content to edit the message with or ``None`` to clear it.
embeds: List[:class:`Embed`]
    A list of embeds to edit the message with.
embed: Optional[:class:`Embed`]
    The embed to edit the message with. ``None`` suppresses the embeds.
    This should not be mixed with the ``embeds`` parameter.
attachments: List[Union[:class:`Attachment`, :class:`File`]]
    A list of attachments to keep in the message as well as new files to upload. If ``[]`` is passed
    then all attachments are removed.

    .. note::

        New files will always appear after current attachments.

    .. versionadded:: 2.0
allowed_mentions: :class:`AllowedMentions`
    Controls the mentions being processed in this message.
    See :meth:`.abc.Messageable.send` for more information.
view: Union[:class:`discord.ui.View`, :class:`discord.ui.LayoutView`]
    The updated view to update this message with. This can only have non-interactible items, which do not
    require a state to be attached to it. If ``None`` is passed then the view is removed.

    If you want to edit a webhook message with any component attached to it, check :meth:`WebhookMessage.edit`.

    .. note::

        To update the message to add a :class:`~discord.ui.LayoutView`, you
        must explicitly set the ``content``, ``embed``, ``embeds``, and
        ``attachments`` parameters to either ``None`` or an empty array, as appropriate.

    .. versionadded:: 2.7

Raises
-------
HTTPException
    Editing the message failed.
Forbidden
    Edited a message that is not yours.
TypeError
    You specified both ``embed`` and ``embeds``.
ValueError
    The length of ``embeds`` was invalid or
    there was no token associated with this webhook.

Returns
--------
:class:`SyncWebhookMessage`
    The newly edited message.
)rú   rû   rü   rý   rþ   Úthreadrÿ   )rù   Ú_webhookÚedit_messageÚidÚ_thread)rB   rú   rû   rü   rý   rþ   rÿ   s   &$$$$$$r;   ÚeditÚSyncWebhookMessage.edit�  sM   € ðH �{‰{×#Ñ#×0Ñ0Ø�G‰GØØØØ#Ø-Ø—;‘;×&Ñ&Øð 1ó 	
ð 		
r>   c               ó    € V ^8„  d   QhRRRR/# )r5   rh   r!   r7   r   r9   )r:   s   "r;   r<   r  ì  s   € ÷ Bñ B ð BÐ);ñ Br>   c                óB   € V P                  . V P                  OVOR7      # )ac  Adds new files to the end of the message attachments.

.. versionadded:: 2.0

Parameters
-----------
\*files: :class:`File`
    New files to add to the message.

Raises
-------
HTTPException
    Editing the message failed.
Forbidden
    Tried to edit a message that isn't yours.

Returns
--------
:class:`SyncWebhookMessage`
    The newly edited message.
©rý   ©r  rý   )rB   rh   s   &*r;   Ú	add_filesÚSyncWebhookMessage.add_filesì  s&   € ð, �y‰yÐ%@ t×'7Ñ'7Ð%@¸%Ð%@ˆyÓAÐAr>   c               ó    € V ^8„  d   QhRRRR/# )r5   rý   r%   r7   r   r9   )r:   s   "r;   r<   r    s   € ÷ \ñ \¨zð \Ð>Pñ \r>   c                ót   € T P                  V P                   Uu. uF  q"V9  g   K  VNK  	  upR7      # u upi )af  Removes attachments from the message.

.. versionadded:: 2.0

Parameters
-----------
\*attachments: :class:`Attachment`
    Attachments to remove from the message.

Raises
-------
HTTPException
    Editing the message failed.
Forbidden
    Tried to edit a message that isn't yours.

Returns
--------
:class:`SyncWebhookMessage`
    The newly edited message.
r  r  )rB   rý   Úas   &* r;   Úremove_attachmentsÚ%SyncWebhookMessage.remove_attachments  s6   € ð, �y‰y°×1AÒ1AÓ%ZÑ1A¨AÈkÑEY§a aÑ1AÑ%ZˆyÓ[Ð[ùÒ%Zs   š5§5Údelayc               ó    € V ^8„  d   QhRRRR/# )r5   r  zOptional[float]r7   r8   r9   )r:   s   "r;   r<   r    s   € ÷ Qñ Q˜ð Q¸$ñ Qr>   c               óÄ   € Ve   \         P                  ! V4       V P                  P                  P	                  V P
                  V P                  P                  R7       R# )ai  Deletes the message.

Parameters
-----------
delay: Optional[:class:`float`]
    If provided, the number of seconds to wait before deleting the message.
    This blocks the thread.

Raises
------
Forbidden
    You do not have proper permissions to delete the message.
NotFound
    The message was deleted already.
HTTPException
    Deleting the message failed.
N©r  )rU   rV   rù   r	  Údelete_messager  r  )rB   r  s   &$r;   ÚdeleteÚSyncWebhookMessage.delete  sA   € ð& ÒÜ�JŠJ�uÔØ�‰×Ñ×+Ñ+¨D¯G©G¸D¿K¹K×<OÑ<OÐ+ÖPr>   r9   )rZ   r[   r\   r]   Ú__doc__ró   r1   r  r  r  r  r^   r9   r>   r;   r   r   �  sy   ‡ ñ	ð ÓðM
ð ")ðM
ð #*ð	M
ð
 ")ðM
ð :AðM
ð 7;ðM
ð $+÷M
õ^Bõ0\ð0Q°÷ Qó Qr>   c            "      óZ  a € ] tR tRt$ RtRHtR]R&   RIR V 3R llltR	 R
 lt]	R R l4       t
]R]RR/R R ll4       t]R]RR/R R ll4       tRR/R R lltRRRR/R R lltRRR]R]RRRR/R R lltR]/R R  llt]R!]R"]R#]R$]R%]R]R&]R']R(]R)]/
R* R+ ll4       t]R!]R"]R#]R$]R%]R,R-R]R&]R']R(]R)]/R. R/ ll4       t]]3R!]R"]R0]R#]R$]R1]R2]R%]R]R&]R']R(]R)]R3]R4]/R5 R6 lll4       t]]3R!]R"]R0]R#]R$]R1]R2]R%]R]R&]R,R-R']R(]R)]R3]R4]/R7 R8 lll4       t]3R!]R"]R0R9R#]R$]R1]R2]R%]R]R&]R,R9R'R9R(R9R)]R3]R4]/R: R; llltR]/R< R= llt]R>R-R%R-RR-/R? R@ ll4       t]RAR-R2R-R1R-R>R-R4R-R%R-RR-/RB RC ll4       tRA]R2]R1]R>]R4]R%RR]/RD RE lltR]/RF RG lltRHtV ;t# )Jr   i4  aÐ  Represents a synchronous Discord webhook.

For an asynchronous counterpart, see :class:`Webhook`.

.. container:: operations

    .. describe:: x == y

        Checks if two webhooks are equal.

    .. describe:: x != y

        Checks if two webhooks are not equal.

    .. describe:: hash(x)

        Returns the webhooks's hash.

.. versionchanged:: 1.4
    Webhooks are now comparable and hashable.

Attributes
------------
id: :class:`int`
    The webhook's ID
type: :class:`WebhookType`
    The type of the webhook.

    .. versionadded:: 1.3

token: Optional[:class:`str`]
    The authentication token of the webhook. If this is ``None``
    then the webhook cannot be used to make requests.
guild_id: Optional[:class:`int`]
    The guild ID this webhook is for.
channel_id: Optional[:class:`int`]
    The channel ID this webhook is for.
user: Optional[:class:`abc.User`]
    The user this webhook was created by. If the webhook was
    received without authentication then this will be ``None``.
name: Optional[:class:`str`]
    The default name of the webhook.
source_guild: Optional[:class:`PartialWebhookGuild`]
    The guild of the channel that this webhook is following.
    Only given if :attr:`type` is :attr:`WebhookType.channel_follower`.

    .. versionadded:: 2.0

source_channel: Optional[:class:`PartialWebhookChannel`]
    The channel that this webhook is following.
    Only given if :attr:`type` is :attr:`WebhookType.channel_follower`.

    .. versionadded:: 2.0
rn   zTuple[str, ...]Ú	__slots__Nc          
     ó,   € V ^8„  d   QhRRRRRRRRR	R
/# )r5   r}   r½   rn   r/   r©   rr   Ústatez/Optional[Union[ConnectionState, _WebhookState]]r7   r8   r9   )r:   s   "r;   r<   ÚSyncWebhook.__annotate__n  s<   € ÷ (ñ (àð(ð ð(ð ð	(ð
 ?ð(ð 
ñ(r>   c                	ó4   <€ \         SV `  WV4       W n        R # r@   )ÚsuperrC   rn   )rB   r}   rn   r©   r%  Ú	__class__s   &&&&&€r;   rC   ÚSyncWebhook.__init__n  s   ø€ ô 	‰Ñ˜ eÔ,Ø 'Žr>   c               ó   € V ^8„  d   QhRR/# ©r5   r7   rµ   r9   )r:   s   "r;   r<   r&  x  s   € ÷ Qñ Q˜#ñ Qr>   c                	ó\   € R V P                   : RV P                  : RV P                  : R2# )z<Webhook id=z type=z name=Ú>)r  Útyperx   rH   s   &r;   Ú__repr__ÚSyncWebhook.__repr__x  s)   € Ø˜dŸg™g™[¨¨t¯y©y©m¸6À$Ç)Á)ÁÈaÐPÐPr>   c               ó   € V ^8„  d   QhRR/# r,  r9   )r:   s   "r;   r<   r&  |  s   € ÷ Jñ J�Sñ Jr>   c                ó:   € RV P                    RV P                   2# )z):class:`str` : Returns the webhook's url.z!https://discord.com/api/webhooks/Ú/)r  r©   rH   s   &r;   rŒ   ÚSyncWebhook.url{  s   € ð 3°4·7±7°)¸1¸T¿Z¹Z¸LÐIÐIr>   Ú	bot_tokenc          
     ó,   € V ^8„  d   QhRRRRRRRRR	R
/# )r5   r  r«   r©   rµ   rn   r/   r6  rr   r7   r   r9   )r:   s   "r;   r<   r&  �  s1   € ÷ $3ñ $3˜ð $3 Sð $3°gð $3ÐTað $3Ðmxñ $3r>   c               óÂ   € RVR^RV/p^ RI pV\        Jd?   \        W6P                  4      '       g#   \	        RVP
                  P                   24      hMTpV ! WSVR7      # )aÅ  Creates a partial :class:`Webhook`.

Parameters
-----------
id: :class:`int`
    The ID of the webhook.
token: :class:`str`
    The authentication token of the webhook.
session: :class:`requests.Session`
    The session to use to send requests with. Note
    that the library does not manage the session and
    will not close it. If not given, the ``requests``
    auto session creation functions are used instead.
bot_token: Optional[:class:`str`]
    The bot authentication token for authenticated requests
    involving the webhook.

Returns
--------
:class:`SyncWebhook`
    A partial :class:`SyncWebhook`.
    A partial :class:`SyncWebhook` is just a :class:`SyncWebhook` object with an ID and a token.
r  r/  r©   Núexpected requests.Session not ©r©   )Úrequestsr1   Ú
isinstancer/   Ú	TypeErrorr)  rZ   )Úclsr  r©   rn   r6  r}   r;  s   &&&$$  r;   ÚpartialÚSyncWebhook.partial€  sq   € ð4 �"Ø�AØ�Uð 
ˆó
 	àœ'Ó!Ü˜g×'7Ñ'7×8Ò8ÜÐ"@À×ARÑAR×A[ÑA[Ð@\Ð ]Ó^Ð^ð 9ð ˆGÙ�4¨	Ô2Ð2r>   c               ó(   € V ^8„  d   QhRRRRRRRR/# )	r5   rŒ   rµ   rn   r/   r6  rr   r7   r   r9   )r:   s   "r;   r<   r&  ¨  s)   € ÷ (3ñ (3˜3ð (3¨Gð (3È-ð (3Ðcnñ (3r>   c               ó(  € \         P                  ! RV4      pVf   \        R4      hVP                  4       p^VR&   ^ RIpV\
        Jd?   \        W&P                  4      '       g#   \        RVP                  P                   24      hMTpV ! WRVR7      # )aÍ  Creates a partial :class:`Webhook` from a webhook URL.

Parameters
------------
url: :class:`str`
    The URL of the webhook.
session: :class:`requests.Session`
    The session to use to send requests with. Note
    that the library does not manage the session and
    will not close it. If not given, the ``requests``
    auto session creation functions are used instead.
bot_token: Optional[:class:`str`]
    The bot authentication token for authenticated requests
    involving the webhook.

Raises
-------
ValueError
    The URL is invalid.

Returns
--------
:class:`SyncWebhook`
    A partial :class:`SyncWebhook`.
    A partial :class:`SyncWebhook` is just a :class:`SyncWebhook` object with an ID and a token.
zXdiscord(?:app)?\.com/api/webhooks/(?P<id>[0-9]{17,20})/(?P<token>[A-Za-z0-9\.\-\_]{60,})NzInvalid webhook URL given.r/  r9  r:  )ÚreÚsearchÚ
ValueErrorÚ	groupdictr;  r1   r<  r/   r=  r)  rZ   )r>  rŒ   rn   r6  Úmr}   r;  s   &&$$   r;   Úfrom_urlÚSyncWebhook.from_url§  s�   € ô8 �IŠIÐqÐsvÓwˆØŠ9ÜÐ9Ó:Ð:à Ÿ{™{›}ˆØˆˆV‰Ûàœ'Ó!Ü˜g×'7Ñ'7×8Ò8ÜÐ"@À×ARÑAR×A[ÑA[Ð@\Ð ]Ó^Ð^ð 9ð ˆGÙ�4¨	Ô2Ð2r>   Úprefer_authTc               ó    € V ^8„  d   QhRRRR/# )r5   rJ  rÌ   r7   r   r9   )r:   s   "r;   r<   r&  Ò  s   € ÷ (Yñ (Y Dð (Y°Kñ (Yr>   c               ó¨  € \        4       pV'       dF   V P                  '       d4   VP                  V P                  V P                  V P                  R7      pMPV P
                  '       d4   VP                  V P                  V P
                  V P                  R7      pM\        R4      h\        W0P                  V P                  V P                  R7      # )a¢  Fetches the current webhook.

This could be used to get a full webhook from a partial webhook.

.. note::

    When fetching with an unauthenticated webhook, i.e.
    :meth:`is_authenticated` returns ``False``, then the
    returned webhook does not contain any user information.

Parameters
-----------
prefer_auth: :class:`bool`
    Whether to use the bot token over the webhook token
    if available. Defaults to ``True``.

Raises
-------
HTTPException
    Could not fetch the webhook
NotFound
    Could not find the webhook by this ID
ValueError
    This webhook does not have a token associated with it.

Returns
--------
:class:`SyncWebhook`
    The fetched webhook.
rí   ú5This webhook does not have a token associated with it)r©   r%  )
r÷   rj   ré   r  rn   r©   rî   rE  r   rù   )rB   rJ  rò   r}   s   &$  r;   ÚfetchÚSyncWebhook.fetchÒ  s�   € ô> #7Ó"8ˆç˜4Ÿ?Ÿ?˜?Ø×(Ñ(¨¯©°$·/±/È4Ï<É<Ð(ÓX‰DØ�Z�ZˆZØ×3Ñ3°D·G±G¸T¿Z¹ZÐQU×Q]ÑQ]Ð3Ó^‰DäÐTÓUÐUä˜4§¡°T·_±_ÈDÏKÉKÔXÐXr>   ri   c               ó$   € V ^8„  d   QhRRRRRR/# )r5   ri   rr   rJ  rÌ   r7   r8   r9   )r:   s   "r;   r<   r&  ü  s'   € ÷  hñ  h ð  hÀ4ð  hÐSWñ  hr>   c               ó”  € V P                   f   V P                  f   \        R4      h\        4       pV'       dH   V P                  '       d6   VP	                  V P
                  V P                  V P                  VR7       R# V P                   '       d6   VP                  V P
                  V P                   V P                  VR7       R# R# )a  Deletes this Webhook.

Parameters
------------
reason: Optional[:class:`str`]
    The reason for deleting this webhook. Shows up on the audit log.

    .. versionadded:: 1.4
prefer_auth: :class:`bool`
    Whether to use the bot token over the webhook token
    if available. Defaults to ``True``.

Raises
-------
HTTPException
    Deleting the webhook failed.
NotFound
    This webhook does not exist.
Forbidden
    You do not have permissions to delete this webhook.
ValueError
    This webhook does not have a token associated with it.
NrM  )r©   rn   ri   )rn   ri   )r©   rj   rE  r÷   r²   r  rn   r¹   )rB   ri   rJ  rò   s   &$$ r;   r  ÚSyncWebhook.deleteü  sŒ   € ð0 �:‰:Ò $§/¡/Ò"9ÜÐTÓUÐUä"6Ó"8ˆç˜4Ÿ?Ÿ?˜?Ø×"Ñ" 4§7¡7°$·/±/È4Ï<É<Ð`fÐ"ÖgØ�Z�ZˆZØ×-Ñ-¨d¯g©g°t·z±zÈ4Ï<É<Ð`fÐ-Ögñ r>   rx   ÚavatarÚchannelc               ó0   € V ^8„  d   QhRRRRRRRRRR	R
R/# )r5   ri   rr   rx   rS  zOptional[bytes]rT  zOptional[Snowflake]rJ  rÌ   r7   r   r9   )r:   s   "r;   r<   r&    sX   € ÷ Ffñ Ffð ðFfð ð	Ffð
  ðFfð %ðFfð ðFfð 
ñFfr>   c               óV  € V P                   f   V P                  f   \        R4      h/ pV\        Jd   Ve   \	        V4      MRVR&   V\        Jd    Ve   \
        P                  ! V4      MRVR&   \        4       pRpVe]   V P                  f   \        R4      hVP                  VR&   VP                  V P                  V P                  W`P                  VR7      pM“V'       dG   V P                  '       d5   VP                  V P                  V P                  W`P                  VR7      pMEV P                   '       d4   VP                  V P                  V P                   W`P                  VR7      pVf   \        R4      h\        W€P                  V P                  V P                  R	7      # )
aw  Edits this Webhook.

Parameters
------------
name: Optional[:class:`str`]
    The webhook's new default name.
avatar: Optional[:class:`bytes`]
    A :term:`py:bytes-like object` representing the webhook's new default avatar.
channel: Optional[:class:`abc.Snowflake`]
    The webhook's new channel. This requires an authenticated webhook.
reason: Optional[:class:`str`]
    The reason for editing this webhook. Shows up on the audit log.

    .. versionadded:: 1.4
prefer_auth: :class:`bool`
    Whether to use the bot token over the webhook token
    if available. Defaults to ``True``.

Raises
-------
HTTPException
    Editing the webhook failed.
NotFound
    This webhook does not exist.
ValueError
    This webhook does not have a token associated with it
    or it tried editing a channel without authentication.

Returns
--------
:class:`SyncWebhook`
    The newly edited webhook.
NrM  rx   rS  z.Editing channel requires authenticated webhookÚ
channel_id)rf   rn   ri   z+Unreachable code hit: data was not assigned)r}   rn   r©   r%  )r©   rj   rE  r1   rµ   r   Ú_bytes_to_base64_datar÷   r  rÁ   rn   rÅ   r�   r   rù   )	rB   ri   rx   rS  rT  rJ  rf   rò   r}   s	   &$$$$$   r;   r  ÚSyncWebhook.edit  s]  € ðT �:‰:Ò $§/¡/Ò"9ÜÐTÓUÐUàˆØ”wÓØ+/Ò+;œc $œiÀˆG�F‰OàœÓ ØGMÒGY¤× ;Ò ;¸FÔ CÐ_cˆG�HÑä"6Ó"8ˆà)-ˆàÒØ�‰Ò&Ü Ð!QÓRÐRà$+§J¡JˆG�LÑ!Ø×'Ñ'¨¯©°·±È'×[gÑ[gÐpvÐ'Ów‰Dß˜TŸ_Ÿ_˜_Ø×'Ñ'¨¯©°·±È'×[gÑ[gÐpvÐ'Ów‰DØ�Z�ZˆZØ×2Ñ2°4·7±7¸D¿J¹JÐPW×amÑamÐv|Ð2Ó}ˆDàŠ<ÜÐLÓMÐMä ¯l©lÀ$Ç/Á/ÐY]×YdÑYdÔeÐer>   r  c               ó$   € V ^8„  d   QhRRRRRR/# )r5   r}   rÍ   r  r&   r7   r   r9   )r:   s   "r;   r<   r&  f  s'   € ÷ Kñ K Nð K¸yð KÐWiñ Kr>   c               	óÖ   € \        W P                  VR 7      pV P                  ;'       g3    \        V P                  V P                  \        VR,          4      R7      p\        WVR7      # ))Úparentr  rW  )r%  Úguild_idr  )r}   r%  rT  )r   rù   rT  r   r]  r«   r   )rB   r}   r  r%  rT  s   &&$  r;   Ú_create_messageÚSyncWebhook._create_messagef  sR   € Ü˜d¯;©;¸vÔFˆà—,‘,×{Ð{Ô"4¸4¿;¹;ÐQU×Q^ÑQ^ÔcfÐgkÐlxÕgyÓczÔ"{ˆä! tÀ'ÔJÐJr>   ÚusernameÚ
avatar_urlr£   rh   rþ   Úthread_nameÚsuppress_embedsÚsilentÚapplied_tagsc               óL   € V ^8„  d   QhRRRRRRRRR	R
RRRRRRRRRRRRRRRR/# )r5   r`  rµ   ra  r   r£   r!   rh   úSequence[File]rþ   r$   rÿ   r*   rÈ   úLiteral[True]r  r&   rb  rc  rÌ   rd  re  úList[ForumTag]r7   r   r9   )r:   s   "r;   r<   r&  n  sŽ   € ÷ !ñ !ð ð!ð ð	!ð
 ð!ð ð!ð *ð!ð ð!ð ð!ð ð!ð ð!ð ð!ð ð!ð %ð!ð 
ñ!r>   c               	ó   € R # r@   r9   ©rB   r`  ra  r£   rh   rþ   rÿ   rÈ   r  rb  rc  rd  re  s   &$$$$$$$$$$$$r;   ÚsendÚSyncWebhook.sendm  s   € ñ  !r>   rÈ   .c               óL   € V ^8„  d   QhRRRRRRRRR	R
RRRRRRRRRRRRRRRR/# )r5   r`  rµ   ra  r   r£   r!   rh   rg  rþ   r$   rÿ   r*   rÈ   úLiteral[False]r  r&   rb  rc  rÌ   rd  re  ri  r7   r8   r9   )r:   s   "r;   r<   r&  €  sŽ   € ÷ ñ ð ðð ð	ð
 ðð ðð *ðð ðð ðð ðð ðð ðð ðð %ðð 
ñr>   c               	ó   € R # r@   r9   rk  s   &$$$$$$$$$$$$r;   rl  rm    s   € ñ  r>   Úttsrü   rû   Úpollrÿ   c          $     ó`   € V ^8„  d   QhRRRRRRRRRR	R
RRRRRRRRRRRRRRRRRRRRRRRRR /# )!r5   rú   rµ   r`  ra  r   rq  rÌ   r£   r!   rh   rg  rü   r"   rû   r  rþ   r$   r  r&   rb  rÈ   rh  rc  rd  re  ri  rr  r#   rÿ   r)   r7   r   r9   )r:   s   "r;   r<   r&  ’  s¾   € ÷ !ñ !àð!ð ð	!ð
 ð!ð ð!ð ð!ð ð!ð ð!ð  ð!ð *ð!ð ð!ð ð!ð ð!ð ð!ð  ð!!ð" %ð#!ð$ ð%!ð& ð'!ð( 
ñ)!r>   c               	ó   € R # r@   r9   ©rB   rú   r`  ra  rq  r£   rh   rü   rû   rþ   r  rb  rÈ   rc  rd  re  rr  rÿ   s   &&$$$$$$$$$$$$$$$$r;   rl  rm  ‘  s   € ñ* !r>   c          $     ó`   € V ^8„  d   QhRRRRRRRRRR	R
RRRRRRRRRRRRRRRRRRRRRRRRR /# )!r5   rú   rµ   r`  ra  r   rq  rÌ   r£   r!   rh   rg  rü   r"   rû   r  rþ   r$   r  r&   rb  rÈ   ro  rc  rd  re  ri  rr  r#   rÿ   r)   r7   r8   r9   )r:   s   "r;   r<   r&  ©  s¾   € ÷ ñ àðð ð	ð
 ðð ðð ðð ðð ðð  ðð *ðð ðð ðð ðð ðð  ð!ð" %ð#ð$ ð%ð& ð'ð( 
ñ)r>   c               	ó   € R # r@   r9   ru  s   &&$$$$$$$$$$$$$$$$r;   rl  rm  ¨  s   € ñ* r>   Fc          $     ó`   € V ^8„  d   QhRRRRRRRRRR	R
RRRRRRRRRRRRRRRRRRRRRRRRR/# ) r5   rú   rµ   r`  ra  r   rq  rÌ   r£   r!   rh   rg  rü   r"   rû   r  rþ   r$   r  r&   rb  rÈ   rc  rd  re  ri  rr  r#   rÿ   r(   r7   zOptional[SyncWebhookMessage]r9   )r:   s   "r;   r<   r&  ¿  sÒ   € ÷ Añ AàðAð ð	Að
 ðAð ðAð ðAð ðAð ðAð  ðAð *ðAð ðAð ðAð ðAð ðAð  ð!Að" %ð#Að$ ð%Að& ð'Að( 
&ñ)Ar>   c               óF  € V P                   f   \        R4      h\        V P                  RR4      pVf   \        pV'       g	   V'       d&   \
        P                  ! ^ 4      pVVn        VVn        M\        pV\        JdV   \        VR4      '       g#   \        RVP                  P                   24      hVP                  4       '       d   \        R4      hV\        Jd   V
\        Jd   \        R4      hV\        J d   \        pMV Uu. uF  pVP                  NK  	  pp\        VVVVVVVVVV	VVVVVR7      ;_uu_ 4       p\!        4       pRpV
\        Jd   V
P                  pVP#                  V P                  V P                   V P$                  VP&                  VP(                  VP*                  VVV\        JR	7	      pRRR4       RpV'       d   V P-                  XV
R
7      pV\        Jd   V'       d   VP/                  V4       V# u upi   + '       g   i     LW; i)aŸ  Sends a message using the webhook.

The content must be a type that can convert to a string through ``str(content)``.

To upload a single file, the ``file`` parameter should be used with a
single :class:`File` object.

If the ``embed`` parameter is provided, it must be of type :class:`Embed` and
it must be a rich embed type. You cannot mix the ``embed`` parameter with the
``embeds`` parameter, which must be a :class:`list` of :class:`Embed` objects to send.

Parameters
------------
content: :class:`str`
    The content of the message to send.
wait: :class:`bool`
    Whether the server should wait before sending a response. This essentially
    means that the return type of this function changes from ``None`` to
    a :class:`WebhookMessage` if set to ``True``.
username: :class:`str`
    The username to send with this message. If no username is provided
    then the default username for the webhook is used.
avatar_url: :class:`str`
    The avatar URL to send with this message. If no avatar URL is provided
    then the default avatar for the webhook is used. If this is not a
    string then it is explicitly cast using ``str``.
tts: :class:`bool`
    Indicates if the message should be sent using text-to-speech.
file: :class:`File`
    The file to upload. This cannot be mixed with ``files`` parameter.
files: List[:class:`File`]
    A list of files to send with the content. This cannot be mixed with the
    ``file`` parameter.
embed: :class:`Embed`
    The rich embed for the content to send. This cannot be mixed with
    ``embeds`` parameter.
embeds: List[:class:`Embed`]
    A list of embeds to send with the content. Maximum of 10. This cannot
    be mixed with the ``embed`` parameter.
allowed_mentions: :class:`AllowedMentions`
    Controls the mentions being processed in this message.

    .. versionadded:: 1.4
thread: :class:`~discord.abc.Snowflake`
    The thread to send this message to.

    .. versionadded:: 2.0
thread_name: :class:`str`
    The thread name to create with this webhook if the webhook belongs
    to a :class:`~discord.ForumChannel`. Note that this is mutually
    exclusive with the ``thread`` parameter, as this will create a
    new thread with the given name.

    .. versionadded:: 2.0
suppress_embeds: :class:`bool`
    Whether to suppress embeds for the message. This sends the message without any embeds if set to ``True``.

    .. versionadded:: 2.0
silent: :class:`bool`
    Whether to suppress push and desktop notifications for the message. This will increment the mention counter
    in the UI, but will not actually send a notification.

    .. versionadded:: 2.2
poll: :class:`Poll`
    The poll to send with this message.

    .. warning::

        When sending a Poll via webhook, you cannot manually end it.

    .. versionadded:: 2.4
view: Union[:class:`~discord.ui.View`, :class:`~discord.ui.LayoutView`]
    The view to send with the message. This can only have non-interactible items, which do not
    require a state to be attached to it.

    If you want to send a view with any component attached to it, check :meth:`Webhook.send`.

    .. versionadded:: 2.5

Raises
--------
HTTPException
    Sending the message failed.
NotFound
    This webhook was not found.
Forbidden
    The authorization token for the webhook is incorrect.
TypeError
    You specified both ``embed`` and ``embeds`` or ``file`` and ``files``
    or ``thread`` and ``thread_name``.
ValueError
    The length of ``embeds`` was invalid, there was no token
    associated with this webhook or you tried to send a view
    with components other than URL buttons.

Returns
---------
Optional[:class:`SyncWebhookMessage`]
    If ``wait`` is ``True`` then the message that was sent, otherwise ``None``.
NrM  rþ   Ú__discord_ui_view__z/expected view parameter to be of type View not z.SyncWebhook views can only contain URL buttonsz4Cannot mix thread_name and thread keyword arguments.)rú   r`  ra  rq  r£   rh   rü   rû   rb  rþ   Úprevious_allowed_mentionsÚflagsre  rr  rÿ   )rn   rf   rg   rh   rÇ   rÈ   rÉ   r  )r©   rE  Úgetattrrù   r1   r   Ú_from_valuerc  Úsuppress_notificationsÚhasattrr=  r)  rZ   Úis_dispatchabler  r   r÷   rÑ   rn   rf   rg   rh   r^  Ú_update)rB   rú   r`  ra  rq  r£   rh   rü   rû   rþ   r  rb  rÈ   rc  rd  re  rr  rÿ   Úprevious_mentionsr|  Úapplied_tag_idsÚtagrk   rò   rÇ   r}   Úmsgs   &&$$$$$$$$$$$$$$$$         r;   rl  rm  ¿  sô  € ðt �:‰:ÒÜÐTÓUÐUä7>¸t¿{¹{ÐL^Ð`dÓ7eÐØŠ?ÜˆGçŸfÜ ×,Ò,¨QÓ/ˆEØ$3ˆEÔ!Ø+1ˆEÕ(äˆEà”wÓÜ˜4Ð!6×7Ò7ÜÐ"QÐRV×R`ÑR`×RiÑRiÐQjÐ kÓlÐlà×#Ñ#×%Ò%Ü Ð!QÓRÐRàœgÓ%¨&¼Ó*?ÜÐRÓSÐSàœ7Ó"Ü%‰Oá@LÓ-MÁ¸¨c¯f¬fÁˆOÐ-Mä&ØØØ!ØØØØØØ#Ø-Ø&7ØØ(ØØ÷
õ 
ð  Ü&:Ó&<ˆGØ'+ˆIØœWÓ$Ø"ŸI™I�	à×*Ñ*Ø—‘Ø—
‘
ØŸ™ØŸ™Ø ×*Ñ*Ø—l‘lØ#ØØ $¬GÐ 3ð +ó 
ˆD÷-
ðD ˆçØ×&Ñ& t°FÐ&Ó;ˆCà”wÓ§3Ø�L‰L˜Ôàˆ
ùòY .N÷
÷ 
ús   Ä	HÅA?HÈH 	c               ó$   € V ^8„  d   QhRRRRRR/# )r5   r  r«   r  r&   r7   r   r9   )r:   s   "r;   r<   r&  ‚  s"   € ÷ ,9ñ ,9 ð ,9°9ð ,9ÐK]ñ ,9r>   c              ó  € V P                   f   \        R4      hRpV\        Jd   VP                  p\	        4       pVP                  V P                  V P                   VV P                  VR7      pV P                  WRR7      # )a]  Retrieves a single :class:`~discord.SyncWebhookMessage` owned by this webhook.

.. versionadded:: 2.0

Parameters
------------
id: :class:`int`
    The message ID to look for.
thread: :class:`~discord.abc.Snowflake`
    The thread to look in.

Raises
--------
~discord.NotFound
    The specified message was not found.
~discord.Forbidden
    You do not have the permissions required to get a message.
~discord.HTTPException
    Retrieving the message failed.
ValueError
    There was no token associated with this webhook.

Returns
--------
:class:`~discord.SyncWebhookMessage`
    The message asked for.
NrM  ©rn   rÇ   r  )r©   rE  r1   r  r÷   rÛ   rn   r^  )rB   r  r  rÇ   rò   r}   s   ""$   r;   Úfetch_messageÚSyncWebhook.fetch_message‚  s~   € ð: �:‰:ÒÜÐTÓUÐUà#'ˆ	ØœÓ ØŸ	™	ˆIä"6Ó"8ˆØ×*Ñ*Ø�G‰GØ�J‰JØØ—L‘LØð +ó 
ˆð ×#Ñ# DÐ#Ó8Ð8r>   rý   c               ó0   € V ^8„  d   QhRRRRRRRRR	R
RR/# )r5   rÔ   r«   rý   r  rÿ   r*   rþ   r  r  r&   r7   r   r9   )r:   s   "r;   r<   r&  ±  sF   € ÷ !ñ !àð!ð 7ð	!ð
 ð!ð 4ð!ð ð!ð 
ñ!r>   c               	ó   € R # r@   r9   )rB   rÔ   rý   rÿ   rþ   r  s   &&$$$$r;   r
  ÚSyncWebhook.edit_message°  s   € ñ !r>   rú   c               ó<   € V ^8„  d   QhRRRRRRRRR	R
RRRRRRRR/	# )r5   rÔ   r«   rú   rr   rû   r  rü   r  rý   r  rÿ   zOptional[View]rþ   r  r  r&   r7   r   r9   )r:   s   "r;   r<   r&  ¼  sd   € ÷ !ñ !àð!ð ð	!ð
  ð!ð ð!ð 7ð!ð ð!ð 4ð!ð ð!ð 
ñ!r>   c               	ó   € R # r@   r9   )	rB   rÔ   rú   rû   rü   rý   rÿ   rþ   r  s	   &&$$$$$$$r;   r
  rŽ  »  s   € ñ !r>   c               ó<   € V ^8„  d   QhRRRRRRRRR	R
RRRRRRRR/	# )r5   rÔ   r«   rú   rr   rû   r  rü   r  rý   r  rÿ   r  rþ   r  r  r&   r7   r   r9   )r:   s   "r;   r<   r&  É  so   € ÷ i=ñ i=àði=ð ð	i=ð
  ði=ð ði=ð 7ði=ð !ði=ð 4ði=ð ði=ð 
ñi=r>   c               ó´  € V P                   f   \        R4      hV'       dV   \        VR4      '       g#   \        RVP                  P
                   24      hVP                  4       '       d   \        R4      h\        V P                  RR4      p	\        VVVVVV	VR7      ;_uu_ 4       p
RpV\        Jd   VP                  p\        4       pVP                  V P                  V P                   VV P                  V
P                  V
P                   V
P"                  V\%        V4      R7	      pV P'                  WØR	7      uuRRR4       #   + '       g   i     R# ; i)
aç  Edits a message owned by this webhook.

This is a lower level interface to :meth:`WebhookMessage.edit` in case
you only have an ID.

.. versionadded:: 1.6

Parameters
------------
message_id: :class:`int`
    The message ID to edit.
content: Optional[:class:`str`]
    The content to edit the message with or ``None`` to clear it.
embeds: List[:class:`Embed`]
    A list of embeds to edit the message with.
embed: Optional[:class:`Embed`]
    The embed to edit the message with. ``None`` suppresses the embeds.
    This should not be mixed with the ``embeds`` parameter.
attachments: List[Union[:class:`Attachment`, :class:`File`]]
    A list of attachments to keep in the message as well as new files to upload. If ``[]`` is passed
    then all attachments are removed.

    .. versionadded:: 2.0
view: Optional[Union[:class:`~discord.ui.View`, :class:`~discord.ui.LayoutView`]]
    The updated view to update this message with. This can only have non-interactible items, which do not
    require a state to be attached to it. If ``None`` is passed then the view is removed.

    If you want to edit a webhook message with any component attached to it, check :meth:`WebhookMessage.edit`.

    .. note::

        To update the message to add a :class:`~discord.ui.LayoutView`, you
        must explicitly set the ``content``, ``embed``, ``embeds``, and
        ``attachments`` parameters to either ``None`` or an empty array, as appropriate.

    .. versionadded:: 2.6
allowed_mentions: :class:`AllowedMentions`
    Controls the mentions being processed in this message.
    See :meth:`.abc.Messageable.send` for more information.
thread: :class:`~discord.abc.Snowflake`
    The thread the webhook message belongs to.

    .. versionadded:: 2.0

Raises
-------
HTTPException
    Editing the message failed.
Forbidden
    Edited a message that is not yours.
TypeError
    You specified both ``embed`` and ``embeds``
ValueError
    The length of ``embeds`` was invalid or
    there was no token associated with this webhook.
NrM  rz  z>expected view parameter to be of type View or LayoutView, not z1SyncWebhooks can not send interactable componentsrþ   )rú   rý   rü   rû   rþ   r{  rÿ   )rn   rf   rg   rh   rÇ   rÉ   r  )r©   rE  r€  r=  r)  rZ   r�  r}  rù   r   r1   r  r÷   rß   rn   rf   rg   rh   rÌ   r^  )rB   rÔ   rú   rû   rü   rý   rÿ   rþ   r  rƒ  rk   rÇ   rò   r}   s   &&$$$$$$$     r;   r
  rŽ  É  s8  € ðJ �:‰:ÒÜÐTÓUÐUçÜ˜4Ð!6×7Ò7ÜÐ"`Ðae×aoÑao×axÑaxÐ`yÐ zÓ{Ð{à×#Ñ#×%Ò%Ü Ð!TÓUÐUä7>¸t¿{¹{ÐL^Ð`dÓ7eÐÜ&ØØ#ØØØ-Ø&7Ø÷
õ 
ð Ø'+ˆIØœWÓ$Ø"ŸI™I�	ä&:Ó&<ˆGØ×/Ñ/Ø—‘Ø—
‘
ØØŸ™ØŸ™Ø ×*Ñ*Ø—l‘lØ#Ü $ T£
ð 0ó 
ˆDð ×'Ñ'¨Ð'Ó<÷3
÷ 
÷ 
ó 
ús   Â(BEÅE	c               ó$   € V ^8„  d   QhRRRRRR/# )r5   rÔ   r«   r  r&   r7   r8   r9   )r:   s   "r;   r<   r&  4  s"   € ÷ (
ñ (
¨ð (
¸Ið (
ÐTXñ (
r>   c              óä   € V P                   f   \        R4      hRpV\        Jd   VP                  p\	        4       pVP                  V P                  V P                   VV P                  VR7       R# )a  Deletes a message owned by this webhook.

This is a lower level interface to :meth:`WebhookMessage.delete` in case
you only have an ID.

.. versionadded:: 1.6

Parameters
------------
message_id: :class:`int`
    The message ID to delete.
thread: :class:`~discord.abc.Snowflake`
    The thread the webhook message belongs to.

    .. versionadded:: 2.0

Raises
-------
HTTPException
    Deleting the message failed.
Forbidden
    Deleted a message that is not yours.
ValueError
    This webhook does not have a token associated with it.
NrM  r‰  )r©   rE  r1   r  r÷   rã   rn   )rB   rÔ   r  rÇ   rò   s   ""$  r;   r  ÚSyncWebhook.delete_message4  sf   € ð4 �:‰:ÒÜÐTÓUÐUà#'ˆ	ØœÓ ØŸ	™	ˆIä"6Ó"8ˆØ×&Ñ&Ø�G‰GØ�J‰JØØ—L‘LØð 	'ö 	
r>   rí   )NN)rZ   r[   r\   r]   r!  r#  ró   rC   r0  ÚpropertyrŒ   Úclassmethodr1   r?  rH  rN  r  r  r^  r   rl  rŠ  r
  r  r^   Ú__classcell__)r)  s   @r;   r   r   4  s  ø‡ ñ5ðn ".€IˆÓ-÷(ò (õQð ôJó ðJð ð$3Àð $3Ðdhö $3ó ð$3ðL ð(3°gð (3ÐZ^ö (3ó ð(3ðT(Y¨4÷ (YðT h°ð  hÈ$÷  hðDFfð !%ðFfð &ð	Ffð
 #*ðFfð (,ðFfð !÷FfðPKÈ7÷ Kð ð!ð  ð!ð "ð	!ð
 ð!ð !(ð!ð -4ð!ð $ð!ð #ð!ð !(ð!ð ð!ð (/ö!ó ð!ð" ðð  ðð "ð	ð
 ðð !(ðð -4ðð  #ðð $ðð #ðð !(ðð ðð (/öó ðð" ð ñ!ð  ð	!ð
 "ð!ð ð!ð ð!ð !(ð!ð ð!ð #*ð!ð -4ð!ð $ð!ð #ð!ð !(ð!ð  ð!!ð" (/ð#!ð$ ð%!ð& ÷'!ó ð!ð, ð ñð  ð	ð
 "ðð ðð ðð !(ðð ðð #*ðð -4ðð $ðð #ðð  #ðð !(ðð  ð!ð" (/ð#ð$ ð%ð& ÷'ó ðð0 ñAð  ð	Að
 "ðAð ðAð ðAð !(ðAð ðAð #*ðAð -4ðAð $ðAð #ðAð ðAð !&ðAð  ð!Að" (/ð#Að$ ð%Að& !÷'Að AðF,9¸w÷ ,9ð\ ð!ð :=ð	!ð 7:ð!ð  ö!ó ð!ð ð!ð "%ð	!ð
 #&ð!ð "%ð!ð :=ð!ð  #ð!ð 7:ð!ð  ö!ó ð!ði=ð ")ð	i=ð
 #*ði=ð ")ði=ð :Aði=ð $+ði=ð 7;ði=ð $÷i=ðV(
È÷ (
õ (
r>   )r   r   )]Ú__conditional_annotations__r!  Ú
__future__r   r†   Úloggingr–   rU   rC  Úurllib.parser   rŠ   Útypingr   r   r   r   r   r	   r
   r   r   r   r   r   rb   Ú r   Úerrorsr   r   r   r   Úmessager   r   Úhttpr   r   rT  r   r   Úasync_r   r   Ú__all__Ú	getLoggerrZ   r�   Útyping_extensionsr   Útypesr    r£   r!   rû   r"   rr  r#   Úmentionsr$   r%   Úabcr&   r%  r'   Úui.viewr(   r)   r*   Útypes.webhookr+   r½   Útypes.messagerÍ   Útypes.snowflaker,   ÚBaseExceptionr-   r;  r/   r0   ÚModuleNotFoundErrorr1   ró   r3   r`   Úlocalrñ   rö   r÷   r   r   )r™  s   @r;   Ú<module>r°     s   øðôõ< #ã Û Û Û Û 	å *ß u× u× uÓ uÛ å ß KÓ Kß +ß 3ß 2ç .ð€ð
 ×Ò˜Ó"€çÝ&Ý#åÝÝÝ*Ý$ÝÝ'ß4Ñ4õõõ 0á	�˜]Ô	+€Bðß.ð �}‰}€ˆÓ ÷ñ ÷.P4ñ P4ôf-�i—o‘oô -ñ Ó€õôbQ˜ô bQôJh
�+ö h
øðE ô Ùðús   Ã2E ÅE#Å"E#