
    cjh8                   P   d Z ddlmZ ddlZddlZddlZddlmZ ddlm	Z	m
Z
mZmZmZmZmZmZ ddlmZmZ ddlmZ dd	lmZ dd
lmZ ddlmZ ddlmZ ddlmZm Z m!Z! ddl"m#Z# ddl$m%Z% ddl&m'Z'm(Z( ddl)m*Z* ddl+m,Z, ddl-m.Z. ddl/m0Z0 ddl1m2Z2 ddl3m4Z4 ddl5m6Z6 ddl7m8Z8 ddl9m:Z: ddlm;Z;m<Z< e	rddl=m>Z>m?Z?m@Z@mAZA ddlmBZB ddlmCZC ddlDmEZE ddlFmGZG dd lHmIZI dd!lJmKZK ddlLmCZM ddlNmZO ddlPm,ZQ dd"lPmRZS dd#lTmUZV dd$lTmWZX dd%lTmYZZ dd&lTm[Z\ dd'lTm]Z^ dd(lTm_Z` ddlTm6Za ddlbm4Zc dd)ldmeZe dd*lfmgZg dd+lhmiZj dd,lkmlZl dd+lmmiZi  ed-d./      Zneee2eof   Zpd0Zqd1 Zr G d2 d3e.      ZU G d4 d5      Zs G d6 d.      Z_ G d7 d8      Z]d9 Ztet G d: d;e.             ZW G d< d=e.      Zuy)>ae  
The MIT License (MIT)

Copyright (c) 2015-2021 Rapptz
Copyright (c) 2021-present Pycord Development

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)PathLike)TYPE_CHECKINGAnyCallableClassVarSequenceTypeVarUnionoverload)parse_qsurlparse   )utils)PartialMessageable)_component_factory)Embed)Emoji)ChannelTypeMessageTypetry_enum)InvalidArgument)File)AttachmentFlagsMessageFlags)Guild)Member)Hashable)Object)PartialEmoji)Poll)Reaction)StickerItem)Thread)MISSINGescape_mentions)GuildChannelMessageableChannelPartialMessageableChannel	Snowflake)TextChannel)	Component)MessageInteraction)AllowedMentions)Role)ConnectionState)UserWithMember)
Attachment)Message)MessageActivity)MessageApplication)MessageCall)MessageReference)SnowflakeList)ThreadArchiveDuration)User)ViewMRr7   )bound)r2   r3   PartialMessager7   r6   DeletedReferencedMessagec                X   t        | t              r| j                  } t        | t              r| j                   d| j
                   S t        | t              r| j                         S t        | t              r| j                  d      S t        d| j                  j                   d      )N:z<>z3emoji argument must be str, Emoji, or Reaction not .)
isinstancer"   emojir   nameidr    _as_reactionstrstripr   	__class____name__rD   s    B/var/www/html/venv/lib/python3.12/site-packages/discord/message.pyconvert_emoji_reactionrN   l   s    %"%**Quxxj))%&!!##% {{4  
	OO$$%Q	(     c                      e Zd ZdZdZddZedd       Zedd       ZddZ	ddZ
ddZd	d
d	 	 	 	 	 	 	 ddZd
dddZd
d
dddZddZy)r2   a	  Represents an attachment from Discord.

    .. container:: operations

        .. describe:: str(x)

            Returns the URL of the attachment.

        .. describe:: x == y

            Checks if the attachment is equal to another attachment.

        .. describe:: x != y

            Checks if the attachment is not equal to another attachment.

        .. describe:: hash(x)

            Returns the hash of the attachment.

    .. versionchanged:: 1.7
        Attachment can now be cast to :class:`str` and is hashable.

    Attributes
    ----------
    id: :class:`int`
        The attachment ID.
    size: :class:`int`
        The attachment size in bytes.
    height: Optional[:class:`int`]
        The attachment's height, in pixels. Only applicable to images and videos.
    width: Optional[:class:`int`]
        The attachment's width, in pixels. Only applicable to images and videos.
    filename: :class:`str`
        The attachment's filename.
    title: Optional[:class:`str`]
        The attachment's title. This is equal to the original :attr:`filename` (without an extension)
        if special characters were filtered from it.

        .. versionadded:: 2.6
    url: :class:`str`
        The attachment URL. If the message this attachment was attached
        to is deleted, then this will 404.
    proxy_url: :class:`str`
        The proxy URL. This is a cached version of the :attr:`~Attachment.url` in the
        case of images. When the message is deleted, this URL might be valid for a few
        minutes or not valid at all.
    content_type: Optional[:class:`str`]
        The attachment's `media type <https://en.wikipedia.org/wiki/Media_type>`_.
    ephemeral: :class:`bool`
        Whether the attachment is ephemeral or not.

        .. versionadded:: 1.7

    description: Optional[:class:`str`]
        The attachment's description.

        .. versionadded:: 2.0

    duration_secs: Optional[:class:`float`]
        The duration of the audio file (currently for voice messages).

        .. versionadded:: 2.5

    waveform: Optional[:class:`str`]
        The base64 encoded bytearray representing a sampled waveform (currently for voice messages).

        .. versionadded:: 2.5

    flags: :class:`AttachmentFlags`
        Extra attributes of the attachment.

        .. versionadded:: 2.5

    hm: :class:`str`
        The unique signature of this attachment's instance.

        .. versionadded:: 2.5
    )rF   sizeheightwidthfilenameurl	proxy_url_httpcontent_type	ephemeraldescriptionduration_secswaveformflags_ex_ishmtitlec          	        t        |d         | _        |d   | _        |j                  d      | _        |j                  d      | _        |d   | _        |j                  d      | _        |j                  d      | _        |j                  d      | _	        |j                  | _        |j                  d	      | _        |j                  d
d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        t#        j$                  |j                  dd            | _        d | _        d | _        d | _        t/        | j                        j0                  }g d}t3        |      x}rI|D ]C  }dj5                  |j                  |j7                  dd      g             }|s7t9        | ||       E y y )NrF   rQ   rR   rS   rT   ra   rU   rV   rX   rY   FrZ   r[   r\   r]   r   )r^   r_   r`    _)intrF   rQ   getrR   rS   rT   ra   rU   rV   httprW   rX   rY   rZ   r[   r\   r   _from_valuer]   r^   r_   r`   r   queryr   joinreplacesetattr)selfdatastateri   extrasquery_paramsattrvalues           rM   __init__zAttachment.__init__   s{   4:f	"&((8"4!%'!2
!*-!%'!2
"hh{3ZZ
(,(@#xxU;'+xx'>+/88O+D$(HHZ$8&5&A&A$((7TUBV&W
##""((%#E?*<* / 0 0c21F KLD$./ +rO   c                    | j                   syt        j                  j                  t        | j                   d            S )z)This attachment URL's expiry time in UTC.N   )r^   datetimeutcfromtimestampre   rm   s    rM   
expires_atzAttachment.expires_at  0     xx  11#dhh2CDDrO   c                    | j                   syt        j                  j                  t        | j                   d            S )z'The attachment URL's issue time in UTC.Nrv   )r_   rw   rx   re   ry   s    rM   	issued_atzAttachment.issued_at  r{   rO   c                8    | j                   j                  d      S )z+Whether this attachment contains a spoiler.SPOILER_)rT   
startswithry   s    rM   
is_spoilerzAttachment.is_spoiler  s    }}''
33rO   c                V    d| j                    d| j                  d| j                  dS )Nz<Attachment id=z
 filename=z url=>)rF   rT   rU   ry   s    rM   __repr__zAttachment.__repr__  s+     	DMM3DE$((UVWWrO   c                "    | j                   xs dS )Nrc   )rU   ry   s    rM   __str__zAttachment.__str__  s    xx~2rO   TF)
seek_begin
use_cachedc               (  K   | j                  |       d{   }t        |t        j                        r&|j	                  |      }|r|j                  d       |S t        |d      5 }|j	                  |      cddd       S 7 k# 1 sw Y   yxY ww)a  |coro|

        Saves this attachment into a file-like object.

        Parameters
        ----------
        fp: Union[:class:`io.BufferedIOBase`, :class:`os.PathLike`]
            The file-like object to save this attachment to or the filename
            to use. If a filename is passed then a file is created with that
            filename and used instead.
        seek_begin: :class:`bool`
            Whether to seek to the beginning of the file after saving is
            successfully done.
        use_cached: :class:`bool`
            Whether to use :attr:`proxy_url` rather than :attr:`url` when downloading
            the attachment. This will allow attachments to be saved after deletion
            more often, compared to the regular URL which is generally deleted right
            after the message is deleted. Note that this can still fail to download
            deleted attachments if too much time has passed, and it does not work
            on some types of attachments.

        Returns
        -------
        :class:`int`
            The number of bytes written.

        Raises
        ------
        HTTPException
            Saving the attachment failed.
        NotFound
            The attachment was deleted.
        r   Nr   wb)readrC   ioBufferedIOBasewriteseekopen)rm   fpr   r   rn   writtenfs          rM   savezAttachment.save  s     P YY*Y55b"++,hhtnG
Nb$ %1wwt}% % 6% %s(   BBAB)B:BBBr   c                  K   |r| j                   n| j                  }| j                  j                  |       d{   }|S 7 w)a  |coro|

        Retrieves the content of this attachment as a :class:`bytes` object.

        .. versionadded:: 1.1

        Parameters
        ----------
        use_cached: :class:`bool`
            Whether to use :attr:`proxy_url` rather than :attr:`url` when downloading
            the attachment. This will allow attachments to be saved after deletion
            more often, compared to the regular URL which is generally deleted right
            after the message is deleted. Note that this can still fail to download
            deleted attachments if too much time has passed, and it does not work
            on some types of attachments.

        Returns
        -------
        :class:`bytes`
            The contents of the attachment.

        Raises
        ------
        HTTPException
            Downloading the attachment failed.
        Forbidden
            You do not have permissions to access this attachment
        NotFound
            The attachment was deleted.
        N)rV   rU   rW   get_from_cdn)rm   r   rU   rn   s       rM   r   zAttachment.readK  s:     > !+dnnZZ,,S11 2s   9AAA)r   spoilerc                  K   | j                  |       d{   }t        t        j                  |      | j                  || j
                        S 7 :w)a  |coro|

        Converts the attachment into a :class:`File` suitable for sending via
        :meth:`abc.Messageable.send`.

        .. versionadded:: 1.3

        Parameters
        ----------
        use_cached: :class:`bool`
            Whether to use :attr:`proxy_url` rather than :attr:`url` when downloading
            the attachment. This will allow attachments to be saved after deletion
            more often, compared to the regular URL which is generally deleted right
            after the message is deleted. Note that this can still fail to download
            deleted attachments if too much time has passed, and it does not work
            on some types of attachments.

            .. versionadded:: 1.4
        spoiler: :class:`bool`
            Whether the file is a spoiler.

            .. versionadded:: 1.4

        Returns
        -------
        :class:`File`
            The attachment as a file suitable for sending.

        Raises
        ------
        HTTPException
            Downloading the attachment failed.
        Forbidden
            You do not have permissions to access this attachment
        NotFound
            The attachment was deleted.
        r   N)rT   r   rZ   )r   r   r   BytesIOrT   rZ   )rm   r   r   rn   s       rM   to_filezAttachment.to_filen  sM     N YY*Y55JJt]]((	
 	
 6s   AA;Ac                p   | j                   | j                  | j                  | j                  | j                  | j                         d}| j                  r| j                  |d<   | j                  r| j                  |d<   | j                  r| j                  |d<   | j                  r| j                  |d<   |S )N)rT   rF   rV   rQ   rU   r   rR   rS   rX   rZ   )
rT   rF   rV   rQ   rU   r   rR   rS   rX   rZ   rm   results     rM   to_dictzAttachment.to_dict  s    ''II88(%
 ;;#{{F8::"jjF7O%)%6%6F>"$($4$4F=!rO   N)rn   AttachmentPayloadro   r0   returnzdatetime.datetime | Noner   boolr   rH   )r   zio.BufferedIOBase | PathLiker   r   r   r   r   re   )r   r   r   bytes)r   r   r   r   r   r   )r   r   )rK   
__module____qualname____doc__	__slots__rt   propertyrz   r}   r   r   r   r   r   r   r    rO   rM   r2   r2      s    N`I*/8 E E E E4X   0%(0% 	0%
 0% 
0%d 05 !F 38 -
^rO   r2   c                  Z    e Zd ZdZdZd	dZd
dZedd       Zedd       Z	edd       Z
y)r?   a4  A special sentinel type that denotes whether the
    resolved message referenced message had since been deleted.

    The purpose of this class is to separate referenced messages that could not be
    fetched and those that were previously fetched but have since been deleted.

    .. versionadded:: 1.6
    _parentc                    || _         y Nr   )rm   parents     rM   rt   z!DeletedReferencedMessage.__init__  s	    )/rO   c                V    d| j                    d| j                   d| j                  dS )Nz<DeletedReferencedMessage id= channel_id=
 guild_id=r   )rF   
channel_idguild_idry   s    rM   r   z!DeletedReferencedMessage.__repr__  s4    77)<'8
4==BSSTV	
rO   c                .    | j                   j                  S )z1The message ID of the deleted referenced message.)r   
message_idry   s    rM   rF   zDeletedReferencedMessage.id  s     ||&&&rO   c                .    | j                   j                  S )z1The channel ID of the deleted referenced message.)r   r   ry   s    rM   r   z#DeletedReferencedMessage.channel_id  s     ||&&&rO   c                .    | j                   j                  S )z/The guild ID of the deleted referenced message.)r   r   ry   s    rM   r   z!DeletedReferencedMessage.guild_id  s     ||$$$rO   N)r   r7   r   )r   re   )r   
int | None)rK   r   r   r   r   rt   r   r   rF   r   r   r   rO   rM   r?   r?     sT     I0
 ' '
 ' ' % %rO   r?   c                      e Zd ZdZdZddd	 	 	 	 	 	 	 ddZe	 	 	 	 	 	 	 	 dd       Zedd	 	 	 	 	 	 	 dd	       Ze	dd
       Z
e	dd       ZddZddZeZy)r7   a  Represents a reference to a :class:`~discord.Message`.

    .. versionadded:: 1.5

    .. versionchanged:: 1.6
        This class can now be constructed by users.

    Attributes
    ----------
    message_id: Optional[:class:`int`]
        The id of the message referenced.
    channel_id: :class:`int`
        The channel id of the message referenced.
    guild_id: Optional[:class:`int`]
        The guild id of the message referenced.
    fail_if_not_exists: :class:`bool`
        Whether replying to the referenced message should raise :class:`HTTPException`
        if the message no longer exists or Discord could not fetch the message.

        .. versionadded:: 1.7

    resolved: Optional[Union[:class:`Message`, :class:`DeletedReferencedMessage`]]
        The message that this reference resolved to. If this is ``None``
        then the original message was not fetched either due to the Discord API
        not attempting to resolve it or it not being available at the time of creation.
        If the message was resolved at a prior point but has since been deleted then
        this will be of type :class:`DeletedReferencedMessage`.

        Currently, this is mainly the replied to message when a user replies to a message.

        .. versionadded:: 1.6
    )r   r   r   fail_if_not_existsresolved_stateNT)r   r   c               X    d | _         d | _        || _        || _        || _        || _        y r   )r   r   r   r   r   r   )rm   r   r   r   r   s        rM   rt   zMessageReference.__init__  s/     /3CG&0)$,(:rO   c                   | j                  |       }t        j                  |d      |_        t	        |j                  d            |_        t        j                  |d      |_        |j                  dd      |_	        ||_
        d |_        |S )Nr   r   r   r   T)__new__r   _get_as_snowflaker   re   popr   r   rf   r   r   r   )clsro   rn   rm   s       rM   
with_statezMessageReference.with_state  sv     {{311$Edhh|45//jA"&((+?"FrO   r   c          	          | |j                   |j                  j                   t        |j                  dd      |      }|j                  |_        |S )aj  Creates a :class:`MessageReference` from an existing :class:`~discord.Message`.

        .. versionadded:: 1.6

        Parameters
        ----------
        message: :class:`~discord.Message`
            The message to be converted into a reference.
        fail_if_not_exists: :class:`bool`
            Whether replying to the referenced message should raise :class:`HTTPException`
            if the message no longer exists or Discord could not fetch the message.

            .. versionadded:: 1.7

        Returns
        -------
        :class:`MessageReference`
            A reference to the message.
        rF   Nr   r   r   r   )rF   channelgetattrguildr   )r   messager   rm   s       rM   from_messagezMessageReference.from_message  sG    . zz))W]]D$71	
 nnrO   c                h    | j                   xr% | j                   j                  | j                        S )z;The cached message, if found in the internal message cache.)r   _get_messager   ry   s    rM   cached_messagezMessageReference.cached_message>  s&     {{Ht{{77HHrO   c                t    | j                   | j                   nd}d| d| j                   d| j                   S )zoReturns a URL that allows the client to jump to the referenced message.

        .. versionadded:: 1.7
        @mehttps://discord.com/channels//)r   r   r   rm   r   s     rM   jump_urlzMessageReference.jump_urlC  s;     %)MM$=4==5.xj$//9J!DOOK\]]rO   c                V    d| j                   d| j                  d| j                  dS )Nz<MessageReference message_id=r   r   r   )r   r   r   ry   s    rM   r   zMessageReference.__repr__L  s2    +DOO+>4??-Z7HK	
rO   c                    | j                   d| j                   ini }| j                  |d<   | j                  | j                  |d<   | j                  | j                  |d<   |S )Nr   r   r   r   r   r   s     rM   r   zMessageReference.to_dictR  si    /3/J\4??+PR 	  $|==$!%F:"".+/+B+BF'(rO   )r   re   r   re   r   r   r   r   )r   type[MR]ro   r0   rn   MessageReferencePayloadr   r<   )r   r   r   r3   r   r   r   r<   )r   Message | Noner   r   r   )rK   r   r   r   r   rt   classmethodr   r   r   r   r   r   r   to_message_reference_dictr   rO   rM   r7   r7     s    BI  $#'; ; 	;
 ; !; 

-
5L
	
 
 GK '@D	 > I I ^ ^
	 !(rO   c                  <    e Zd ZdZddZedd       Zedd       Zy)	r6   zYRepresents information about a call in a private channel.

    .. versionadded:: 2.6
    c                z    || _         |j                  dg       | _        t        j                  |d         | _        y )Nparticipantsended_timestamp)r   rf   _participantsr   
parse_time_ended_timestamp)rm   ro   rn   s      rM   rt   zMessageCall.__init__f  s8    ',,0HH^R,H:?:J:J"#;
rO   c                    | j                   D cg c]3  }| j                  j                  t        |            xs t	        |      5 c}S c c}w )zA list of :class:`User` that participated in this call.

        If a user is not found in the client's cache,
        then it will be returned as an :class:`Object`.
        )r   r   get_userre   r   )rm   is     rM   r   zMessageCall.participantsm  s?     DHCUCUVa$$SV,9q	9VVVs   8A
c                    | j                   S )z*An aware timestamp of when the call ended.)r   ry   s    rM   ended_atzMessageCall.ended_atv  s     $$$rO   N)ro   r0   rn   MessageCallPayload)r   zlist[User | Object]r   )rK   r   r   r   rt   r   r   r   r   rO   rM   r6   r6   `  s6    

 W W % %rO   r6   c                j   t        d      }| j                  j                         D cg c]"  \  }}|j                  d      r|dk7  r||d  |f$ }}}|j	                  d| j
                  f       || _        | j                  D cg c]  }|j                  d      s| c}| _        | S c c}}w c c}w )N_handle__handle_membermember_cs_)	len__dict__itemsr   appendr   	_HANDLERSr   _CACHED_SLOTS)r   prefixkeyrs   handlersrr   s         rM   flatten_handlersr   |  s    _F ,,,,.C>>*%#1A*A 
VWuH  OOXs1123CM*---S$4??6;RSCJ Ts   'B*B0B0c                  X   e Zd ZU dZdZer#ded<   ded<   ded<   d	ed
<   ded<   ded<   ded<   	 	 	 	 	 	 dUdZdVdZdWdXdZ	dYdZ
	 	 	 	 	 	 	 	 dZdZd[dZd Zd\dZd]dZd^dZd_dZd`dZd]dZd]dZd^d Zd\d!Zdad"Zdbd#Zdcd$Zddd%Zded&Zdfd'Zdgd(Zdhd)Zdid*Z	 	 	 	 	 	 djd+Z e!dkd,       Z"e"jF                  dld-       Z" e$jJ                  d.      dmd/       Z& e$jJ                  d0      dmd1       Z' e$jJ                  d2      dmd3       Z( e$jJ                  d4      dnd5       Z) e$jJ                  d6      dVd7       Z*e!dod8       Z+e!dpd9       Z,e!dVd:       Z-e!dqd;       Z.drd<Z/ e$jJ                  d=      dVd>       Z0ddd?	 	 	 	 	 dsd@Z1e2dAdAdAdAdAdAdAdAdAdAdB
	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dtdC       Z3e4e4e4e4e4e4e4de4e4f
	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dudDZ3dXdEZ5ddFdvdGZ6ddFdvdHZ7dwdIZ8	 	 	 	 	 	 dxdJZ9dydKZ:dXdLZ;e4e4dM	 	 	 	 	 	 	 dzdNZ<dWd{dOZ=d|dPZ>dQdRd}dSZ?d~dTZ@y)r3   aG  Represents a message from Discord.

    .. container:: operations

        .. describe:: x == y

            Checks if two messages are equal.

        .. describe:: x != y

            Checks if two messages are not equal.

        .. describe:: hash(x)

            Returns the message's hash.

    Attributes
    -----------
    tts: :class:`bool`
        Specifies if the message was done with text-to-speech.
        This can only be accurately received in :func:`on_message` due to
        a discord limitation.
    type: :class:`MessageType`
        The type of message. In most cases this should not be checked, but it is helpful
        in cases where it might be a system message for :attr:`system_content`.
    author: Union[:class:`Member`, :class:`abc.User`]
        A :class:`Member` that sent the message. If :attr:`channel` is a
        private channel or the user has the left the guild, then it is a :class:`User` instead.
    content: :class:`str`
        The actual contents of the message.
    nonce: Optional[Union[:class:`str`, :class:`int`]]
        The value used by the discord guild and the client to verify that the message is successfully sent.
        This is not stored long term within Discord's servers and is only used ephemerally.
    embeds: List[:class:`Embed`]
        A list of embeds the message has.
    channel: Union[:class:`TextChannel`, :class:`Thread`, :class:`DMChannel`, :class:`GroupChannel`, :class:`PartialMessageable`]
        The :class:`TextChannel` or :class:`Thread` that the message was sent from.
        Could be a :class:`DMChannel` or :class:`GroupChannel` if it's a private message.
    reference: Optional[:class:`~discord.MessageReference`]
        The message that this message references. This is only applicable to messages of
        type :attr:`MessageType.pins_add`, crossposted messages created by a
        followed channel integration, or message replies.

        .. versionadded:: 1.5

    mention_everyone: :class:`bool`
        Specifies if the message mentions everyone.

        .. note::

            This does not check if the ``@everyone`` or the ``@here`` text is in the message itself.
            Rather this boolean indicates if either the ``@everyone`` or the ``@here`` text is in the message
            **and** it did end up mentioning.
    mentions: List[:class:`abc.User`]
        A list of :class:`Member` that were mentioned. If the message is in a private message
        then the list will be of :class:`User` instead. For messages that are not of type
        :attr:`MessageType.default`\, this array can be used to aid in system messages.
        For more information, see :attr:`system_content`.

        .. warning::

            The order of the mentions list is not in any particular order, so you should
            not rely on it. This is a Discord limitation, not one with the library.
    channel_mentions: List[:class:`abc.GuildChannel`]
        A list of :class:`abc.GuildChannel` that were mentioned. If the message is in a private message
        then the list is always empty.
    role_mentions: List[:class:`Role`]
        A list of :class:`Role` that were mentioned. If the message is in a private message
        then the list is always empty.
    id: :class:`int`
        The message ID.
    webhook_id: Optional[:class:`int`]
        If this message was sent by a webhook, then this is the webhook ID's that sent this
        message.
    attachments: List[:class:`Attachment`]
        A list of attachments given to a message.
    pinned: :class:`bool`
        Specifies if the message is currently pinned.
    flags: :class:`MessageFlags`
        Extra features of the message.

        .. versionadded:: 1.3

    reactions : List[:class:`Reaction`]
        Reactions to a message. Reactions can be either custom emoji or standard unicode emoji.
    activity: Optional[:class:`dict`]
        The activity associated with this message. Sent with Rich-Presence related messages that for
        example, request joining, spectating, or listening to or with another member.

        It is a dictionary with the following optional keys:

        - ``type``: An integer denoting the type of message activity being requested.
        - ``party_id``: The party ID associated with the party.
    application: Optional[:class:`dict`]
        The rich presence enabled application associated with this message.

        It is a dictionary with the following keys:

        - ``id``: A string representing the application's ID.
        - ``name``: A string representing the application's name.
        - ``description``: A string representing the application's description.
        - ``icon``: A string representing the icon ID of the application.
        - ``cover_image``: A string representing the embed's image asset ID.
    stickers: List[:class:`StickerItem`]
        A list of sticker items given to the message.

        .. versionadded:: 1.6
    components: List[:class:`Component`]
        A list of components in the message.

        .. versionadded:: 2.0
    guild: Optional[:class:`Guild`]
        The guild that the message belongs to, if applicable.
    interaction: Optional[:class:`MessageInteraction`]
        The interaction associated with the message, if applicable.

        .. deprecated:: 2.6

            Use :attr:`interaction_metadata` instead.
    interaction_metadata: Optional[:class:`InteractionMetadata`]
        The interaction metadata associated with the message, if applicable.

        .. versionadded:: 2.6
    thread: Optional[:class:`Thread`]
        The thread created from this message, if applicable.

        .. versionadded:: 2.0
    poll: Optional[:class:`Poll`]
        The poll associated with this message, if applicable.

        .. versionadded:: 2.6
    call: Optional[:class:`MessageCall`]
        The call information associated with this message, if applicable.

        .. versionadded:: 2.6
    )#r   _edited_timestamp_cs_channel_mentions_cs_raw_mentions_cs_clean_content_cs_raw_channel_mentions_cs_raw_role_mentions_cs_system_contentttscontentr   
webhook_idmention_everyoneembedsrF   mentionsauthorattachmentsnoncepinnedrole_mentionstyper]   	reactions	referenceapplicationactivitystickers
componentsr   _interactioninteraction_metadatathread_pollcallz/ClassVar[list[tuple[str, Callable[..., None]]]]r   zClassVar[list[str]]r   Guild | Noner   zMessageReference | Noner  zlist[User | Member]r
  zUser | Memberr  z
list[Role]r  c               	   || _         t        |d         | _        t        j                  |d      | _        |j                  dg       D cg c]  }t        | |       c}| _        |d   D cg c]  }t        || j                          c}| _
        |d   D cg c]  }t        j                  |       c}| _        |j                  d      | _        |j                  d	      | _        || _        t        j"                  |d
         | _        t'        t(        |d         | _        |d   | _        t/        j0                  |j                  dd            | _        |d   | _        |d   | _        |d   | _        |j                  d      | _        |j                  dg       D cg c]  }t=        ||       c}| _        |j                  dg       D cg c]  }tA        |       c}| _!        	 |jD                  | _"        	 |d   }tJ        jM                  ||      x| _'        }	 |d   }|tQ        |      |_)        n`|jT                  |j                  k(  r|}n*|jW                  || jD                  j                        \  }}	| jY                  |||      |_)        	 ddl.m/}
m0} |  	  ||d   |      | _1        	  |
|d   |      | _2        |  	 tg        j                  |d   |       | _4        | j                   jk                  | jh                  | j                         |  	 tm        | jD                  | j                   |d          | _7        |  	 tq        | j                   |d!   "      | _9        d#D ]  }	  tu        | d$|       ||           y c c}w c c}w c c}w c c}w c c}w # tF        $ r. |jI                  t        j                  |d            | _"        Y w xY w# tZ        $ r Y Pw xY w# tZ        $ r d | _'        Y gw xY w# tZ        $ r d | _1        Y aw xY w# tZ        $ r d | _2        Y ew xY w# tZ        $ r d | _4        Y +w xY w# tZ        $ r d | _7        Y w xY w# tZ        $ r d | _9        Y 
w xY w# tZ        $ r Y w xY w)%NrF   r  r  r   rn   r  rn   ro   r	  r  r  edited_timestampr  r  r]   r   r  r  r  r  sticker_itemsr  r   message_referencereferenced_message)r   )r   rn   ro   r   )InteractionMetadatar-   interactionr  pollr  r   ro   rn   r  )ro   rn   )r  r   r
  mention_rolesr   );r   re   rF   r   r   r  rf   r"   r  r2   r  r   	from_dictr	  r  r  r   r   r   r   r   r  r  r   rh   r]   r  r  r  r  r#   r  r   r  r   AttributeError
_get_guildr7   r   r  r?   r   r   _get_guild_channelrJ   KeyErrorinteractionsr$  r-   r  r  r!   r  
store_pollr$   r  r6   r  r   )rm   ro   r   rn   darefr   chanrd   r$  r-   handlers                rM   rt   zMessage.__init__E  s[    (-4:&+&=&=dL&Q48HH["4M*
/0HT**
 <@;N.
67JAT[[1.
 AEX#O1EOOA$6#O=AXXm=T7;xx
7K+2;@;K;K#$<
 "*+tF|!D	 N#/#;#;DHHWa<P#Q
&*+=&>e O'+xx'8
6:hhPR6S,
12KQe,,
 ,088L"+E,
&'q!,
	U DJ	\*+C $4#>#>uc#JJDNS\ 45 ##;C#@CL ~~3&"'":":$tzz}} #; #a
 $(>>$XUZ>#[CLI	% 2-(!D
	-(;01)D% 		Vd;DJKK""4::tww7 		 jj$x.DK 		#$++DLIDI I 	G3	23DMB	*
.
 $P,
,
  	U))%*A*A$
*STDJ	U    	"!DN	"<  	% $D	%  	-(,D%	-  	DJ	  	DK	  	DI	  s   
N-NN"NN-N$ ?O. "O %P 8P AP3 *Q
 Q! 0Q8$3OO	O+*O+.PPPPP0/P03QQ
QQ!Q54Q58	RRc                    | j                   j                  }d| d| j                   d| j                  d| j                  d| j
                  d| j                  dS )N<z id=	 channel=z type=z author=z flags=r   )rJ   rK   rF   r   r  r  r]   )rm   rE   s     rM   r   zMessage.__repr__  sX    ~~&&vT$'')DLL+;6$))t{{oWTZZN!=	
rO   Nc                t    	 ||   }|t        | ||       y t        | | ||             y # t        $ r Y y w xY wr   )rl   r-  )rm   rn   r   	transformrs   s        rM   
_try_patchzMessage._try_patch  sI    	5IE  c5)c9U#34  		s   + 	77c                    t        j                  fd| j                        }|| j                  j                  k(  x}|d<   |+t        | |      }| j                  j                  |       |S |xj                  dz  c_        |r||_        |S )Nc                "    | j                   k(  S r   rL   rrD   s    rM   <lambda>z'Message._add_reaction.<locals>.<lambda>      5(8 rO   me)r   rn   rD   r   )	r   findr  r   self_idr"   r   countrA  )rm   rn   rD   user_idreactionis_mes     `   rM   _add_reactionzMessage._add_reaction  s    ::8$..I$(;(;;;T
4uEHNN!!(+ 	 NNaN#rO   c                &   t        j                  fd| j                        }|t        d      |xj                  dz  c_        || j
                  j                  k(  rd|_        |j                  dk(  r| j                  j                  |       |S )Nc                "    | j                   k(  S r   rL   r=  s    rM   r?  z*Message._remove_reaction.<locals>.<lambda>  r@  rO   zEmoji already removed?r   Fr   )	r   rB  r  
ValueErrorrD  r   rC  rA  remove)rm   rn   rD   rE  rF  s     `  rM   _remove_reactionzMessage._remove_reaction  sx     ::8$..I566 	!dkk)))HK>>QNN!!(+rO   c                    t        |      }t        | j                        D ]  \  }}t        |j                        |k(  s n y | j                  |= |S r   )rH   	enumerater  rD   )rm   rD   to_checkindexrF  s        rM   _clear_emojizMessage._clear_emoji  sQ    u:(8 	OE88>>"h.	
 NN5!rO   c                    | j                   D ]  \  }}	 ||   } || |        | j                  D ]  }	 t        | |        y # t        $ r Y Aw xY w# t        $ r Y -w xY wr   )r   r-  r   delattrr*  )rm   rn   r   r4  rs   rr   s         rM   _updatezMessage._update  s    
 !NN 	%LC%S	 e$	% && 	Dd#	   " s"   AA	AA	AAc                8    t        j                  |      | _        y r   )r   r   r   rm   rs   s     rM   _handle_edited_timestampz Message._handle_edited_timestamp	  s    !&!1!1%!8rO   c                    || _         y r   )r  rW  s     rM   _handle_pinnedzMessage._handle_pinned  s	    rO   c                8    t        j                  |      | _        y r   )r   rh   r]   rW  s     rM   _handle_flagszMessage._handle_flags  s    !--e4
rO   c                    || _         y r   )r  rW  s     rM   _handle_applicationzMessage._handle_application  s
     rO   c                    || _         y r   )r  rW  s     rM   _handle_activityzMessage._handle_activity  s	    rO   c                    || _         y r   )r  rW  s     rM   _handle_mention_everyonez Message._handle_mention_everyone  s
     %rO   c                    || _         y r   )r  rW  s     rM   _handle_ttszMessage._handle_tts  s	    rO   c                .    t        t        |      | _        y r   )r   r   r  rW  s     rM   _handle_typezMessage._handle_type  s    [%0	rO   c                    || _         y r   )r  rW  s     rM   _handle_contentzMessage._handle_content!  s	    rO   c                b    |D cg c]  }t        || j                         c}| _        y c c}w )Nr  )r2   r   r  )rm   rs   r1  s      rM   _handle_attachmentszMessage._handle_attachments$  s#    KPQaJAT[[AQQs   ,c                ^    |D cg c]  }t        j                  |       c}| _        y c c}w r   )r   r)  r	  )rm   rs   rn   s      rM   _handle_embedszMessage._handle_embeds'  s     9>?ut,??s   *c                    || _         y r   )r  rW  s     rM   _handle_noncezMessage._handle_nonce*  s	    
rO   c                    t        j                  ||       | _        | j                  j	                  | j                  | j
                         y r   )r!   r)  r  r   r/  rF   rW  s     rM   _handle_pollzMessage._handle_poll-  s0    ^^E40
tzz4773rO   c                    | j                   j                  |      | _        t        | j                  t
              r:| j                  j                  | j                  j                        }||| _        y y y r   )r   
store_userr  rC   r   r   
get_memberrF   )rm   r  founds      rM   _handle_authorzMessage._handle_author1  sY    kk,,V4djj%(JJ))$++..9E # ! )rO   c                    | j                   }	 |j                  |       y # t        $ r t        j                  | |      | _         Y y w xY w)Nr  )r  _update_from_messager*  r   _from_message)rm   r   r  s      rM   r   zMessage._handle_member8  sH     	J''/ 	J !..t&IDK	Js     %AAc                   g x| _         }| j                  }| j                  }t        |t              s%|D cg c]  }|j                  |       c}| _         y t        d |      D ]\  }t        |d         }|j                  |      }||j                  |       6|j                  t        j                  |||             ^ y c c}w )NrF   )rn   r   ro   )r
  r   r   rC   r   rr  filterre   rs  r   r   _try_upgrade)	rm   r
  r>  r   ro   mmention	id_searchr   s	            rM   _handle_mentionszMessage._handle_mentionsH  s    

%':BCQU--a0CDMdH- 	VGGDM*I%%i0F! ,,'eTU	V Ds   Cc                    g | _         t        | j                  t              rOt	        t
        |      D ];  }| j                  j                  |      }|!| j                   j                  |       = y y r   )r  rC   r   r   mapre   get_roler   )rm   r  role_idroles       rM   _handle_mention_roleszMessage._handle_mention_rolesX  sa    djj%(sM2 4zz**73#&&--d34 )rO   c                J    |D cg c]  }t        |       c}| _        y c c}w r   )r   r  )rm   r  r0  s      rM   _handle_componentszMessage._handle_components`  s    :DEQ-a0EEs    c                     || _         || _        y r   )r   r   )rm   	new_guildnew_channels      rM   _rebind_cached_referencesz!Message._rebind_cached_referencesc  s     
"rO   c                L    t        j                  dddd       | j                  S Nr%  r  z2.6zKhttps://discord.com/developers/docs/change-log#userinstallable-apps-preview)r  r   warn_deprecatedr  ry   s    rM   r%  zMessage.interactioni  s*    "c		
    rO   c                D    t        j                  dddd       || _        y r  r  rW  s     rM   r%  zMessage.interactions  s&    "c		
 "rO   r   c                z    t        j                  d| j                        D cg c]  }t        |       c}S c c}w )zA property that returns an array of user IDs matched with
        the syntax of ``<@user_id>`` in the message content.

        This allows you to receive the user IDs of mentioned users
        even in a private message context.
        z<@!?([0-9]{15,20})>refindallr  re   rm   xs     rM   raw_mentionszMessage.raw_mentions}  s,     !#

+A4<< PQ1AQQQ   8r  c                z    t        j                  d| j                        D cg c]  }t        |       c}S c c}w )zA property that returns an array of channel IDs matched with
        the syntax of ``<#channel_id>`` in the message content.
        z<#([0-9]{15,20})>r  r  s     rM   raw_channel_mentionszMessage.raw_channel_mentions  s,    
 !#

+? NO1AOOOr  r  c                z    t        j                  d| j                        D cg c]  }t        |       c}S c c}w )zA property that returns an array of role IDs matched with
        the syntax of ``<@&role_id>`` in the message content.
        z<@&([0-9]{15,20})>r  r  s     rM   raw_role_mentionszMessage.raw_role_mentions  s,    
 !#

+@$,, OP1APPPr  r   c                    | j                   g S t        d t        | j                   j                  | j                              }t        j                  |      S r   )r   rz  r  get_channelr  r   _unique)rm   its     rM   channel_mentionszMessage.channel_mentions  sC    ::ID#djj44d6O6OPQ}}R  rO   r  c                  
 | j                   D ci c]3  }t        j                  d|j                   d      d|j                   5 c}
| j
                  D ci c]3  }t        j                  d|j                   d      d|j                   5 }}| j
                  D ci c]3  }t        j                  d|j                   d      d|j                   5 }}
j                  |       
j                  |       | j                  Y| j                  D ci c]3  }t        j                  d|j                   d      d|j                   5 }}
j                  |       
fd}t        j                  d	j                  
j                                     }|j                  || j                        }	t        |	      S c c}w c c}w c c}w c c}w )
a-  A property that returns the content in a "cleaned up"
        manner. This basically means that mentions are transformed
        into the way the client shows it. e.g. ``<#id>`` will transform
        into ``#name``.

        This will also transform @everyone and @here mentions into
        non-mentions.

        .. note::

            This *does not* affect markdown. If you want to escape
            or remove markdown then use :func:`utils.escape_markdown` or :func:`utils.remove_markdown`
            respectively, along with this function.
        z<#r   #z<@@z<@!z<@&c                l    j                  t        j                  | j                  d            d      S )Nr   rc   )rf   r  escapegroup)objtransformationss    rM   replz#Message.clean_content.<locals>.repl  s'    "&&ryy1'>CCrO   |)r  r  r  rF   rE   r
  display_nameupdater   r  compilerj   keyssubr  r&   )rm   r   r   mention_transformssecond_mention_transformsr  role_transformsr  patternr   r  s             @rM   clean_contentzMessage.clean_content  s   &  00
 II7::,a()Qw||n+==
 --
 II699+Q'(Af.A.A-B*CC
 
 --%
 IIFII;a()Qv/B/B.C+DD%
! %

 	1289::! !.. 		Cy*+q_<O  ""?3	D **SXXo&:&:&<=>T4<<0v&&?


%
s   8G 8G!8G
8Gc                @    t        j                  | j                        S )z#The message's creation time in UTC.r   snowflake_timerF   ry   s    rM   
created_atzMessage.created_at       ##DGG,,rO   c                    | j                   S )zXAn aware UTC datetime object containing the
        edited time of the message.
        )r   ry   s    rM   	edited_atzMessage.edited_at  s    
 %%%rO   c                    t        | j                  dd      }d| d| j                  j                   d| j                   S )z=Returns a URL that allows the client to jump to this message.rF   r   r   r   )r   r   r   rF   r   s     rM   r   zMessage.jump_url  s<     4::tU3.xj$,,//9J!DGG9UUrO   c                `    | j                   j                  j                  | j                        S r   r   _pollsrf   rF   ry   s    rM   r&  zMessage.poll  !    {{!!%%dgg..rO   c                    | j                   t        j                  t        j                  t        j                  t        j
                  fvS )zWhether the message is a system message.

        A system message is a message that is constructed entirely by the Discord API
        in response to something.

        .. versionadded:: 1.3
        )r  r   defaultreplyapplication_commandthread_starter_messagery   s    rM   	is_systemzMessage.is_system  s>     yy++..	!
 
 	
rO   r  c                    | j                   t        j                  u r| j                  S | j                   t        j                  u r| j
                  j                   t        j                  u r3| j                  j                   d| j                  d   j                   dS | j                  j                   d| j                  d   j                   dS | j                   t        j                  u r| j
                  j                   t        j                  u r3| j                  j                   d| j                  d   j                   dS | j                  j                   d| j                  d   j                   dS | j                   t        j                  u r&| j                  j                   d| j                   d	S | j                   t        j                  u r| j                  j                   d
S | j                   t        j                  u r| j                  j                   dS | j                   t        j                  u r^g d}t!        | j"                  j%                         dz        }||t'        |      z     j)                  | j                  j                        S | j                   t        j*                  u rK| j                  s| j                  j                   dS | j                  j                   d| j                   dS | j                   t        j,                  u re| j                  s&| j                  j                   d| j.                   dS | j                  j                   d| j                   d| j.                   dS | j                   t        j0                  u re| j                  s&| j                  j                   d| j.                   dS | j                  j                   d| j                   d| j.                   dS | j                   t        j2                  u re| j                  s&| j                  j                   d| j.                   dS | j                  j                   d| j                   d| j.                   dS | j                   t        j4                  u r&| j                  j                   d| j                   dS | j                   t        j6                  u r9| j                  j                   d| j                  j8                  j                   S | j                   t        j:                  u r	 y| j                   t        j<                  u r	 y| j                   t        j>                  u r	 y| j                   t        j@                  u r	 y| j                   t        jB                  u r&| j                  j                   d| j                   dS | j                   t        jD                  u r| j                  S | j                   t        jF                  u rC| jH                  | jH                  jJ                  y | jH                  jJ                  j                  S | j                   t        jL                  u r	 y!y)"a`  A property that returns the content that is rendered
        regardless of the :attr:`Message.type`.

        In the case of :attr:`MessageType.default` and :attr:`MessageType.reply`\,
        this just returns the regular :attr:`Message.content`. Otherwise, this
        returns an English message denoting the contents of the system message.
        z added r   z to the group.z to the thread.z	 removed z from the group.z from the thread.z changed the channel name: **z**z changed the channel icon.z" pinned a message to this channel.)z{0} joined the party.z{0} is here.z(Welcome, {0}. We hope you brought pizza.zA wild {0} appeared.z{0} just landed.z{0} just slid into the server.z{0} just showed up!zWelcome {0}. Say hi!z{0} hopped into the server.zEveryone welcome {0}!zGlad you're here, {0}.zGood to see you, {0}.zYay you made it, {0}!i  z just boosted the server!z just boosted the server **z	** times!z just boosted the server! z has achieved **Level 1!**z
** times! z has achieved **Level 2!**z has achieved **Level 3!**z has added z to this channelz is live! Now streaming zThis server has been removed from Server Discovery because it no longer passes all the requirements. Check Server Settings for more details.zWThis server is eligible for Server Discovery again and has been automatically relisted!zThis server has failed Discovery activity requirements for 1 week. If this server fails for 4 weeks in a row, it will be automatically removed from Discovery.zThis server has failed Discovery activity requirements for 3 weeks in a row. If this server fails for 1 more week, it will be removed from Discovery.z started a thread: **z**. See all **threads**.Nz8Sorry, we couldn't load the first message in this threadzTWondering who to invite?
Start by inviting anyone who can help you build the server!)'r  r   r  r  recipient_addr   r   r  r  rE   r
  recipient_removechannel_name_changechannel_icon_changepins_add
new_memberre   r  	timestampr   formatpremium_guild_subscriptionpremium_guild_tier_1r   premium_guild_tier_2premium_guild_tier_3channel_follow_addguild_streamr  guild_discovery_disqualifiedguild_discovery_requalified,guild_discovery_grace_period_initial_warning*guild_discovery_grace_period_final_warningthread_createdr  r  r  r   guild_invite_reminder)rm   formatscreated_at_mss      rM   system_contentzMessage.system_content  s    99+++<<99111||  K$5$55++**+74==3C3H3H2IXX {{''(a0@0E0E/FoV 99444||  K$5$55{{''(	$--2B2G2G1H I  {{''(	$--2B2G2G1H I 
 99777kk&&''DT\\NRTUU99777kk&&''ABB99,,,kk&&''IJJ99...G    9 9 ;d BCM=3w<78??@P@PQQ99>>><<++**++DEE {{''((CDLL> R 
 99888<<{{''((B4::, O- - {{''((CDLL> R#zzl*DF
 99888<<{{''((B4::, O- - {{''((CDLL> R#zzl*DF
 99888<<{{''((B4::, O- - {{''((CDLL> R#zzl*DF
 99666kk&&'{4<<.@PQQ99000kk&&''?@T@T@Y@Y?Z[[99@@@ 99???+
 99PPP+ 99NNN 99222;;##$$9$,, H   
 99)))<<99:::~~%)@)@)HQ >>**22299999% :rO   )delayreasonc                  K   | j                   j                  j                  | j                  j                  | j                  |      }|t        j                  ||       y| d{    y7 w)a  |coro|

        Deletes the message.

        Your own messages could be deleted without any proper permissions. However, to
        delete other people's messages, you need the :attr:`~Permissions.manage_messages`
        permission.

        .. versionchanged:: 1.1
            Added the new ``delay`` keyword-only parameter.

        Parameters
        ----------
        delay: Optional[:class:`float`]
            If provided, the number of seconds to wait in the background
            before deleting the message. If the deletion fails then it is silently ignored.
        reason: Optional[:class:`str`]
            The reason for deleting the message. Shows up on the audit log.

        Raises
        ------
        Forbidden
            You do not have proper permissions to delete the message.
        NotFound
            The message was deleted already
        HTTPException
            Deleting the message failed.
        r  N)r   rg   delete_messager   rF   r   
delay_task)rm   r  r  del_funcs       rM   deletezMessage.delete  sY     > ;;##22LLOOTWWV 3 
 UH-NNs   A%A/'A-(A/.)
r  embedr	  filefilesr  suppressdelete_afterallowed_mentionsviewc       
           K   y wr   r   )rm   r  r  r	  r  r  r  r  r  r  r  s              rM   editzMessage.edit  s      s   c                Z  K   i }|t         ur|t        |      nd|d<   |t         ur|t         urt        d      |t         ur|g n|j                         g|d<   n)|t         ur!|D cg c]  }|j                          c}|d<   |t         ur?t	        j
                  | j                  j                        }||_        |j                  |d<   |	t         u rk| j                  j                  | j                  j                  | j                  j                  k(  r| j                  j                  j                         |d<   nb|	`| j                  j                  7| j                  j                  j                  |	      j                         |d<   n|	j                         |d<   |t         ur!|D cg c]  }|j                          c}|d<   |
t         ur<| j                  j                  | j                         |
r|
j!                         ng |d<   |t         ur|t         urt        d	      |t         us|t         ur|t         urt#        |t$              st        d
      |g}n6t'        |      dkD  rt        d      t)        d |D              st        d      d|vr+| j*                  D cg c]  }|j                          c}|d<   	  | j                  j,                  j.                  | j0                  j                  | j                  fd|i| d{   }|D ]  }|j3                           nN | j                  j,                  j4                  | j0                  j                  | j                  fi | d{   }t7        | j                  | j0                  |      }|
r=|
j9                         s-||
_        | j                  j=                  |
| j                         || j?                  |       d{    |S c c}w c c}w c c}w 7 # |D ]  }|j3                           w xY w7 7 5w)a\  |coro|

        Edits the message.

        The content must be able to be transformed into a string via ``str(content)``.

        .. versionchanged:: 1.3
            The ``suppress`` keyword-only parameter was added.

        Parameters
        ----------
        content: Optional[:class:`str`]
            The new content to replace the message with.
            Could be ``None`` to remove the content.
        embed: Optional[:class:`Embed`]
            The new embed to replace the original with.
            Could be ``None`` to remove the embed.
        embeds: List[:class:`Embed`]
            The new embeds to replace the original with. Must be a maximum of 10.
            To remove all embeds ``[]`` should be passed.

            .. versionadded:: 2.0
        file: Sequence[:class:`File`]
            A new file to add to the message.
        files: List[Sequence[:class:`File`]]
            New files to add to the message.
        attachments: List[:class:`Attachment`]
            A list of attachments to keep in the message. If ``[]`` is passed
            then all attachments are removed.
        suppress: :class:`bool`
            Whether to suppress embeds for the message. This removes
            all the embeds if set to ``True``. If set to ``False``
            this brings the embeds back if they were suppressed.
            Using this parameter requires :attr:`~.Permissions.manage_messages`.
        delete_after: Optional[:class:`float`]
            If provided, the number of seconds to wait in the background
            before deleting the message we just edited. If the deletion fails,
            then it is silently ignored.
        allowed_mentions: Optional[:class:`~discord.AllowedMentions`]
            Controls the mentions being processed in this message. If this is
            passed, then the object is merged with :attr:`~discord.Client.allowed_mentions`.
            The merging behaviour only overrides attributes that have been explicitly passed
            to the object, otherwise it uses the attributes set in :attr:`~discord.Client.allowed_mentions`.
            If no object is passed at all then the defaults given by :attr:`~discord.Client.allowed_mentions`
            are used instead.

            .. versionadded:: 1.4
        view: Optional[:class:`~discord.ui.View`]
            The updated view to update this message with. If ``None`` is passed then
            the view is removed.

        Raises
        ------
        HTTPException
            Editing the message failed.
        Forbidden
            Tried to suppress a message without permissions or
            edited a message's content or embed that isn't yours.
        ~discord.InvalidArgument
            You specified both ``embed`` and ``embeds``,
            specified both ``file`` and ``files``, or either``file``
            or ``files`` were of the wrong type.
        Nr  z5cannot pass both embed and embeds parameter to edit()r	  r]   r  r  r  z3cannot pass both file and files parameter to edit()z#file parameter must be of type File
   z3files parameter must be a list of up to 10 elementsc              3  <   K   | ]  }t        |t                y wr   )rC   r   ).0r  s     rM   	<genexpr>zMessage.edit.<locals>.<genexpr>M  s     FZd3Fs   z&files parameter must be a list of Filer  ro   r   rn   r  ) r%   rH   r   r   r   rh   r]   rs   suppress_embedsr   r  r  rF   rC  mergeprevent_view_updates_forto_componentsrC   r   r   allr  rg   
edit_filesr   closeedit_messager3   is_finishedr   
store_viewr  )rm   r  r  r	  r  r  r  r  r  r  r  payloader]   r1  rn   r   r   s                     rM   r  zMessage.edit  s    Z #%'!181DW$GIF'$9!G  &+m%--/9JGH7"6< = =GH7" ,,TZZ-=-=>E$,E!${{GGw&,,8KKNNdkk&9&99.2kk.J.J.R.R.T*+){{++7.2kk.J.J.P.P$/') *+ /?.F.F.H*+g%;F%Gaaiik%GGM"wKK009<@D$6$6$8bGL!w5#7!"WXXw%w"67"!$-)*OPPu:?)M  FFF)*RSSG+?C?O?O)P!!))+)P&	8T[[--88LLOOGG   	   AGGI 7))66,3 D T\\M((*"DLKK""41#++L+111K !>, &H. *Q  AGGI 2sw   A%P+'O:>D.P+,O?C$P+'P>P+AP P	P A!P+6P'7A<P+3P)4P+	P P$$P+)P+c                   K   | j                   j                  j                  | j                  j                  | j                         d{    y7 w)a  |coro|

        Publishes this message to your announcement channel.

        You must have the :attr:`~Permissions.send_messages` permission to do this.

        If the message is not your own then the :attr:`~Permissions.manage_messages`
        permission is also needed.

        Raises
        ------
        Forbidden
            You do not have the proper permissions to publish this message.
        HTTPException
            Publishing the message failed.
        N)r   rg   publish_messager   rF   ry   s    rM   publishzMessage.publishl  s4     $ kk..t||HHH   AA
AAr  c                  K   | j                   j                  j                  | j                  j                  | j                  |       d{    d| _        y7 w)a  |coro|

        Pins the message.

        You must have the :attr:`~Permissions.manage_messages` permission to do
        this in a non-private channel context.

        Parameters
        ----------
        reason: Optional[:class:`str`]
            The reason for pinning the message. Shows up on the audit log.

            .. versionadded:: 1.4

        Raises
        ------
        Forbidden
            You do not have permissions to pin the message.
        NotFound
            The message or channel was not found or deleted.
        HTTPException
            Pinning the message failed, probably due to the channel
            having more than 50 pinned messages.
        r  NT)r   rg   pin_messager   rF   r  rm   r  s     rM   pinzMessage.pin  sF     4 kk**4<<??DGGF*SSS 	T   A
AAAc                  K   | j                   j                  j                  | j                  j                  | j                  |       d{    d| _        y7 w)ag  |coro|

        Unpins the message.

        You must have the :attr:`~Permissions.manage_messages` permission to do
        this in a non-private channel context.

        Parameters
        ----------
        reason: Optional[:class:`str`]
            The reason for unpinning the message. Shows up on the audit log.

            .. versionadded:: 1.4

        Raises
        ------
        Forbidden
            You do not have permissions to unpin the message.
        NotFound
            The message or channel was not found or deleted.
        HTTPException
            Unpinning the message failed.
        r  NF)r   rg   unpin_messager   rF   r  r
  s     rM   unpinzMessage.unpin  sF     2 kk,,T\\__dggf,UUU 	Vr  c                   K   t        |      }| j                  j                  j                  | j                  j
                  | j
                  |       d{    y7 w)aW  |coro|

        Add a reaction to the message.

        The emoji may be a unicode emoji or a custom guild :class:`Emoji`.

        You must have the :attr:`~Permissions.read_message_history` permission
        to use this. If nobody else has reacted to the message using this
        emoji, the :attr:`~Permissions.add_reactions` permission is required.

        Parameters
        ----------
        emoji: Union[:class:`Emoji`, :class:`Reaction`, :class:`PartialEmoji`, :class:`str`]
            The emoji to react with.

        Raises
        ------
        HTTPException
            Adding the reaction failed.
        Forbidden
            You do not have the proper permissions to react to the message.
        NotFound
            The emoji you specified was not found.
        InvalidArgument
            The emoji parameter is invalid.
        N)rN   r   rg   add_reactionr   rF   rm   rD   s     rM   r  zMessage.add_reaction  s@     8 'u-kk++DLLOOTWWeLLL   AAAAc                  K   t        |      }|j                  | j                  j                  k(  rN| j                  j                  j                  | j                  j                  | j                  |       d{    y| j                  j                  j                  | j                  j                  | j                  ||j                         d{    y7 ^7 w)a  |coro|

        Remove a reaction by the member from the message.

        The emoji may be a unicode emoji or a custom guild :class:`Emoji`.

        If the reaction is not your own (i.e. ``member`` parameter is not you) then
        the :attr:`~Permissions.manage_messages` permission is needed.

        The ``member`` parameter must represent a member and meet
        the :class:`abc.Snowflake` abc.

        Parameters
        ----------
        emoji: Union[:class:`Emoji`, :class:`Reaction`, :class:`PartialEmoji`, :class:`str`]
            The emoji to remove.
        member: :class:`abc.Snowflake`
            The member for which to remove the reaction.

        Raises
        ------
        HTTPException
            Removing the reaction failed.
        Forbidden
            You do not have the proper permissions to remove the reaction.
        NotFound
            The member or emoji you specified was not found.
        InvalidArgument
            The emoji parameter is invalid.
        N)rN   rF   r   rC  rg   remove_own_reactionr   remove_reaction)rm   rD   r   s      rM   r  zMessage.remove_reaction  s     D 'u-99+++++""66t||QVWWW++""22%   Xs%   A7C9C:ACCCCc                   K   t        |      }| j                  j                  j                  | j                  j
                  | j
                  |       d{    y7 w)a  |coro|

        Clears a specific reaction from the message.

        The emoji may be a unicode emoji or a custom guild :class:`Emoji`.

        You need the :attr:`~Permissions.manage_messages` permission to use this.

        .. versionadded:: 1.3

        Parameters
        ----------
        emoji: Union[:class:`Emoji`, :class:`Reaction`, :class:`PartialEmoji`, :class:`str`]
            The emoji to clear.

        Raises
        ------
        HTTPException
            Clearing the reaction failed.
        Forbidden
            You do not have the proper permissions to clear the reaction.
        NotFound
            The emoji you specified was not found.
        InvalidArgument
            The emoji parameter is invalid.
        N)rN   r   rg   clear_single_reactionr   rF   r  s     rM   clear_reactionzMessage.clear_reaction  s@     8 'u-kk44T\\__dgguUUUr  c                   K   | j                   j                  j                  | j                  j                  | j                         d{    y7 w)aY  |coro|

        Removes all the reactions from the message.

        You need the :attr:`~Permissions.manage_messages` permission to use this.

        Raises
        ------
        HTTPException
            Removing the reactions failed.
        Forbidden
            You do not have the proper permissions to remove all the reactions.
        N)r   rg   clear_reactionsr   rF   ry   s    rM   r  zMessage.clear_reactions"  s4      kk..t||HHHr  )auto_archive_durationslowmode_delayc                 K   | j                   t        d      t        | j                  dd      }| j                  j
                  j                  | j                  j                  | j                  ||xs ||xs d       d{   }t        | j                   | j                  |      | _	        | j                  S 7 7w)a  |coro|

        Creates a public thread from this message.

        You must have :attr:`~discord.Permissions.create_public_threads` in order to
        create a public thread from a message.

        The channel this message belongs in must be a :class:`TextChannel`.

        .. versionadded:: 2.0

        Parameters
        ----------
        name: :class:`str`
            The name of the thread.
        auto_archive_duration:  Optional[:class:`int`]
            The duration in minutes before a thread is automatically archived for inactivity.
            If not provided, the channel's default auto archive duration is used.
        slowmode_delay: Optional[:class:`int`]
            Specifies the slowmode rate limit for user in this thread, in seconds.
            A value of ``0`` disables slowmode. The maximum value possible is ``21600``.

        Returns
        -------
        :class:`.Thread`
            The created thread.

        Raises
        ------
        Forbidden
            You do not have permissions to create a thread.
        HTTPException
            Creating the thread failed.
        InvalidArgument
            This message does not have guild info attached.
        Nz/This message does not have guild info attached.default_auto_archive_durationi  r   )rE   r  rate_limit_per_userr'  )
r   r   r   r   r   rg   start_thread_with_messagerF   r$   r  )rm   rE   r  r  r  rn   s         rM   create_threadzMessage.create_thread2  s     V ::!"STT?FLL94@
% [[%%??LLOOGG"7 #-, . 3! @ 
 
 4::T[[tL{{
s   BB>B<8B>c                \   K    | j                   j                  |fd| i| d{   S 7 w)aZ  |coro|

        A shortcut method to :meth:`.abc.Messageable.send` to reply to the
        :class:`.Message`.

        .. versionadded:: 1.6

        Returns
        -------
        :class:`.Message`
            The message that was sent.

        Raises
        ------
        ~discord.HTTPException
            Sending the message failed.
        ~discord.Forbidden
            You do not have the proper permissions to send the message.
        ~discord.InvalidArgument
            The ``files`` list is not of the appropriate size, or
            you specified both ``file`` and ``files``.
        r  N)r   send)rm   r  kwargss      rM   r  zMessage.replyp  s/     0 'T\\&&wI$I&IIIIs   #,*,c                   K   | j                   j                  j                  | j                  j                  | j                         d{   }t        | j                   | j                  |      }|S 7 (w)  |coro|

        Immediately ends the poll associated with this message. Only doable by the poll's owner.

        .. versionadded:: 2.6

        Returns
        -------
        :class:`Message`
            The updated message.

        Raises
        ------
        Forbidden
            You do not have permissions to end this poll.
        HTTPException
            Ending this poll failed.
        Nr  )r   rg   expire_pollr   rF   r3   rm   rn   r   s      rM   end_pollzMessage.end_poll  s[     ( [[%%11LLOOGG
 
 T\\M
s   AA5
A3)A5Tr   c               0    t         j                  | |      S )a
  Creates a :class:`~discord.MessageReference` from the current message.

        .. versionadded:: 1.6

        Parameters
        ----------
        fail_if_not_exists: :class:`bool`
            Whether replying using the message reference should raise :class:`HTTPException`
            if the message no longer exists or Discord could not fetch the message.

            .. versionadded:: 1.7

        Returns
        -------
        :class:`~discord.MessageReference`
            The reference to this message.
        r   )r7   r   )rm   r   s     rM   to_referencezMessage.to_reference  s"    &  ,,%7 - 
 	
rO   c                    | j                   | j                  j                   d}| j                  | j                  j                   |d<   |S )N)r   r   r   )rF   r   r   rm   rn   s     rM   r   z!Message.to_message_reference_dict  s>    '',,//)

 ::!#zz}}DrO   )ro   r0   r   r(   rn   MessagePayloadr   r   r   None)r   r"   )rn   ReactionPayloadrD   EmojiInputTyperE  re   r   r"   )r   zReaction | None)rs   rH   r   r1  )rs   r   r   r1  )rs   re   r   r1  )rs   MessageApplicationPayloadr   r1  )rs   MessageActivityPayloadr   r1  )rs   zlist[AttachmentPayload]r   r1  )rs   zlist[EmbedPayload]r   r1  )rs   z	str | intr   r1  )rs   PollPayloadr   r1  )r  UserPayloadr   r1  )r   MemberPayloadr   r1  )r
  zlist[UserWithMemberPayload]r   r1  )r  	list[int]r   r1  )r  zlist[ComponentPayload])r  r   r  zTextChannel | Threadr   r1  )r   MessageInteraction | None)rs   r:  r   r1  )r   r9  )r   zlist[GuildChannel]r   zdatetime.datetimer   r   zPoll | Noner   )r  float | Noner  
str | Noner   r1  )r  r>  r  Embed | Noner	  list[Embed]r  zFile | Noner  zlist[File] | Noner  list[Attachment]r  r   r  r=  r  AllowedMentions | Noner  View | Noner   r3   )r  r>  r  r?  r	  r@  r  zSequence[File]r  zlist[Sequence[File]]r  rA  r  r   r  r=  r  rB  r  rC  r   r3   )r  r>  r   r1  )rD   r3  r   r1  )rD   EmojiInputType | Reactionr   r*   r   r1  )rD   rD  r   r1  )rE   rH   r  r9   r  re   r   r$   )r  r>  r   r3   r   r3   )r   r   r   r7   r   )ArK   r   r   r   r   r   __annotations__rt   r   r:  rH  rM  rR  rU  rX  rZ  r\  r^  r`  rb  rd  rf  rh  rj  rl  rn  rp  ru  r   r  r  r  r  r   r%  setterr   cached_slot_propertyr  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   rO   rM   r3   r3     s|   GR$IL BB****%%!!m m $	m
 m^
	5#,:EH	*
(95!&1R@4$J V 4F##-A#	# ! ! " "  U 23R 4R  U :;P <P  U 78Q 9Q  U 67! 8!  U 34/' 5/'b - - & & V V
 / /
  U 45` 6`F (,$%$%5?%	%N  "!!#&(+%(36  	
   ! &  # 1  
 " &%%&&-(/ %)3:#]] ] 	]
 ] $] &] ] #] 1] ] 
]~I( 15 : 37 8M>).)8A)	)VV>I( 8?%< <  5	<
 < 
<|J48 :> 
.	rO   r3   c                     e Zd ZU dZdZej                  Zded<   ej                  Zej                  Z	ej                  Z
ej                  Zej                  Zej                  Zej                  Zej                  Zej                   Zej"                  Zej$                  ZddZddZ edd       Zdd	Zedd
       Zedd       Z ej6                  d      dd       ZddZddZddZy)r>   a  Represents a partial message to aid with working messages when only
    a message and channel ID are present.

    There are two ways to construct this class. The first one is through
    the constructor itself, and the second is via the following:

    - :meth:`TextChannel.get_partial_message`
    - :meth:`Thread.get_partial_message`
    - :meth:`DMChannel.get_partial_message`
    - :meth:`VoiceChannel.get_partial_message`
    - :meth:`StageChannel.get_partial_message`
    - :meth:`PartialMessageable.get_partial_message`

    Note that this class is trimmed down and has no rich attributes.

    .. versionadded:: 1.6

    .. container:: operations

        .. describe:: x == y

            Checks if two partial messages are equal.

        .. describe:: x != y

            Checks if two partial messages are not equal.

        .. describe:: hash(x)

            Returns the partial message's hash.

    Attributes
    ----------
    channel: Union[:class:`TextChannel`, :class:`Thread`, :class:`DMChannel`, :class:`VoiceChannel`, :class:`StageChannel`, :class:`PartialMessageable`]
        The channel associated with this partial message.
    id: :class:`int`
        The message ID.
    )r   rF   	_cs_guildr   rH   r   c          	        |j                   t        j                  t        j                  t        j                  t        j
                  t        j                  t        j                  t        j                  t        j                  fvr't        |t              st        dt        |            || _        |j                  | _        || _        y )Nz^Expected TextChannel, VoiceChannel, StageChannel, DMChannel, Thread or PartialMessageable not )r  r   textvoicestage_voicenewsprivatenews_threadpublic_threadprivate_threadrC   r   	TypeErrorr   r   rF   )rm   r   rF   s      rM   rt   zPartialMessage.__init__   s    <<####%%&&	 
 	
 W&89M$& 
 3:'.~~rO   c                     y r   r   r.  s     rM   rU  zPartialMessage._update  s     	rO   Nc                     y r   r   )r  ys     rM   r?  zPartialMessage.<lambda>  s    rO   c                <    d| j                    d| j                  dS )Nz<PartialMessage id=r7  r   )rF   r   ry   s    rM   r   zPartialMessage.__repr__  s     $TWWIYt||6FaHHrO   c                @    t        j                  | j                        S )z+The partial message's creation time in UTC.r  ry   s    rM   r  zPartialMessage.created_at   r  rO   c                `    | j                   j                  j                  | j                        S r   r  ry   s    rM   r&  zPartialMessage.poll%  r  rO   rJ  c                0    t        | j                  dd      S )z=The guild that the partial message belongs to, if applicable.r   N)r   r   ry   s    rM   r   zPartialMessage.guild)  s     t||Wd33rO   c                   K   | j                   j                  j                  | j                  j                  | j                         d{   }| j                   j                  | j                  |      S 7 +w)a  |coro|

        Fetches the partial message to a full :class:`Message`.

        Returns
        -------
        :class:`Message`
            The full message.

        Raises
        ------
        NotFound
            The message was not found.
        Forbidden
            You do not have the permissions required to get a message.
        HTTPException
            Retrieving the message failed.
        Nr   rn   )r   rg   get_messager   rF   create_messager.  s     rM   fetchzPartialMessage.fetch.  sW     ( [[%%11$,,//477KK{{))$,,T)JJ Ls   AA8
A6,A8c                  K   |j                  dt              }|t        ur|t        |      nd|d<   |j                  dt              }|j                  dt              }|t        ur|t        urt        d      |t        ur|g n|j	                         g|d<   |t        ur!|D cg c]  }|j	                          c}|d<   |j                  dd      }t        j                  d      }||_        |j                  |d	<   |j                  d
d      }|j                  dt              }|t        ur`| j                  j                  4| j                  j                  j                  |      j	                         }n|j	                         }||d<   n?| j                  j                  r$| j                  j                  j	                         nd|d<   |j                  dt              }	|	t        ur<| j                  j                  | j                         |	r|	j                         ng |d<   |rN | j                  j                   j"                  | j$                  j                  | j                  fi | d{   }
|| j'                  |       d{    |rh| j                  j)                  | j$                  
      }|	r=|	j+                         s-||	_        | j                  j/                  |	| j                         |S yc c}w 7 7 vw)an	  |coro|

        Edits the message.

        .. versionchanged:: 1.7
            :class:`discord.Message` is returned instead of ``None`` if an edit took place.

        Parameters
        ----------
        content: Optional[:class:`str`]
            The new content to replace the message with.
            Could be ``None`` to remove the content.
        embed: Optional[:class:`~discord.Embed`]
            The new embed to replace the original with.
            Could be ``None`` to remove the embed.
        embeds: Optional[List[:class:`~discord.Embed`]]
            A list of embeds to upload. Must be a maximum of 10.

            .. versionadded:: 2.0
        suppress: :class:`bool`
            Whether to suppress embeds for the message. This removes
            all the embeds if set to ``True``. If set to ``False``
            this brings the embeds back if they were suppressed.
            Using this parameter requires :attr:`~.Permissions.manage_messages`.
        delete_after: Optional[:class:`float`]
            If provided, the number of seconds to wait in the background
            before deleting the message we just edited. If the deletion fails,
            then it is silently ignored.
        allowed_mentions: Optional[:class:`~discord.AllowedMentions`]
            Controls the mentions being processed in this message. If this is
            passed, then the object is merged with :attr:`~discord.Client.allowed_mentions`.
            The merging behaviour only overrides attributes that have been explicitly passed
            to the object, otherwise it uses the attributes set in :attr:`~discord.Client.allowed_mentions`.
            If no object is passed at all then the defaults given by :attr:`~discord.Client.allowed_mentions`
            are used instead.
        view: Optional[:class:`~discord.ui.View`]
            The updated view to update this message with. If ``None`` is passed then
            the view is removed.

            .. versionadded:: 2.0

        Returns
        -------
        Optional[:class:`Message`]
            The message that was edited.

        Raises
        ------
        NotFound
            The message was not found.
        HTTPException
            Editing the message failed.
        Forbidden
            Tried to suppress a message without permissions or
            edited a message's content or embed that isn't yours.
        r  Nr  r	  z-Cannot pass both embed and embeds parameters.r  Fr   r]   r  r  r  r  r  r]  )r   r%   rH   r   r   r   rh   r  rs   rf   r   r  r  r  rF   r  rg   r  r   r  r_  r   r   r  )rm   fieldsr  r  r	  r  r]   r  r  r  rn   msgs               rM   r  zPartialMessage.editE  s    t **Y0'!070CGF9

7G,Hg.F'$9!"QRR%*]r8IF8 =CDEDF8::j%0((+ (++wzz.$7!::&8'B7*{{++7#';;#?#?#E#E$$') ! $4#;#;#= )9F%& ;;// ,,446 %& zz&'*wKK009;?4#5#5#7RF< 6))66,2 D #++L+111++,,T\\,MCD,,."&&tTWW5J M  E>
 2s2   B$L	&L =F7L	4L5L	LA5L	L	c                   K   | j                   j                  j                  | j                  j                  | j                         d{   }| j                   j                  | j                  |      }|S 7 -w)r'  Nr]  )r   rg   r(  r   rF   r_  r)  s      rM   r*  zPartialMessage.end_poll  sb     ( [[%%11LLOOGG
 
 ++,,T\\,M
s   AA:
A8.A:)r   r)   rF   re   r0  r   r;  r<  )r   r  rE  )rb  r   r   r   ) rK   r   r   r   r   r3   r   rF  r  r  r  r  r  r  r  r  r  r,  r   rt   rU  r   r  r   r  r&  r   rH  r   r`  r  r*  r   rO   rM   r>   r>     s	   %N 9I$$Hc$^^FooG
++CMME''L--O++N--OMME''L ' A A( d-.FI - - / /  U,4 -4K.tlrO   r>   )vr   
__future__r   rw   r   r  osr   typingr   r   r   r   r	   r
   r   r   urllib.parser   r   rc   r   r   r   r  r   r	  r   rD   r   enumsr   r   r   errorsr   r  r   r]   r   r   r   r   r   r   mixinsr   objectr   partial_emojir    r&  r!   rF  r"   stickerr#   threadsr$   r%   r&   abcr'   r(   r)   r*   r+   r,   r.  r-   r
  r.   r  r/   ro   r0   types.componentsComponentPayloadtypes.embedEmbedPayloadtypes.memberr8  r1   UserWithMemberPayloadtypes.messager2   r   r3   r/  r4   r5  r5   r4  r6   r   r7   r   r2  
types.pollr6  types.snowflaker8   types.threadsr9   
types.userr:   r7  ui.viewr;   userr<   rH   r3  __all__rN   r?   r   r>   r   rO   rM   <module>r     sL  2 #  	 	 	 	 	 ,  ' *   5 5 #  0     '      +  %%0)&?25E>8HN@J:/.4/	/	0B5,34N&o od	#% #%LF( F(R% %8 zh z zz)LX LrO   