
    cjht                       d Z ddlmZ ddlZddlmZ ddlmZmZ ddl	m
Z
mZmZmZ er^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 ddlmZ ddlm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'm(Z(m)Z)m*Z*m+Z+m,Z,m-Z-m.Z. ddl/m0Z0 dZ1 G d d      Z2 G d de2      Z3 G d de2      Z4 G d de2      Z5 G d de2      Z6 G d de2      Z7 G d  d!e2      Z8 G d" d#e2      Z9 G d$ d%e2      Z: G d& d'e2      Z; G d( d)e2      Z< G d* d+e2      Z= G d, d-e2      Z> G d. d/e2      Z? G d0 d1      Z G d2 d3e2      Z@ G d4 d5e2      ZA G d6 d7e2      ZBy)8ae  
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)TYPE_CHECKING   )AutoModActionAutoModTriggerType)AuditLogActionChannelTypeReactionTypetry_enum)MessageableChannel)Guild)Member)Message)PartialEmoji)ConnectionState)Thread)AuditLogEntryEvent)AutoModActionExecutionEvent)BulkMessageDeleteEventIntegrationDeleteEventMemberRemoveEventMessageDeleteEventMessagePollVoteEventMessageUpdateEventReactionActionEventReactionClearEmojiEventReactionClearEventScheduledEventSubscriptionThreadDeleteEventThreadMembersUpdateEventThreadUpdateEventTypingEventVoiceChannelStatusUpdateEvent)User)RawMessageDeleteEventRawBulkMessageDeleteEventRawMessageUpdateEventRawReactionActionEventRawReactionClearEventRawReactionClearEmojiEventRawIntegrationDeleteEventRawThreadUpdateEventRawThreadDeleteEventRawTypingEventRawMemberRemoveEventRawScheduledEventSubscriptionr   RawThreadMembersUpdateEventRawAuditLogEntryEvent RawVoiceChannelStatusUpdateEventRawMessagePollVoteEventc                      e Zd ZddZy)_RawReprMixinc                     dj                   fd j                  D              }d j                  j                   d| dS )N c              3  @   K   | ]  }| d t        |        yw)=N)getattr).0attrselfs     E/var/www/html/venv/lib/python3.12/site-packages/discord/raw_models.py	<genexpr>z)_RawReprMixin.__repr__.<locals>.<genexpr>W   s$     VtD674#6"9:Vs   <>)join	__slots__	__class____name__)r>   values   ` r?   __repr__z_RawReprMixin.__repr__V   s;    Vt~~VV4>>**+1UG155    Nreturnstr)rF   
__module____qualname__rH    rI   r?   r6   r6   U   s    6rI   r6   c                      e Zd ZdZdZddZy)r%   a  Represents the event payload for a :func:`on_raw_message_delete` event.

    Attributes
    ----------
    channel_id: :class:`int`
        The channel ID where the deletion took place.
    guild_id: Optional[:class:`int`]
        The guild ID where the deletion took place, if applicable.
    message_id: :class:`int`
        The message ID that got deleted.
    cached_message: Optional[:class:`Message`]
        The cached message, if found in the internal message cache.
    data: :class:`dict`
        The raw data sent by the `gateway <https://discord.com/developers/docs/topics/gateway-events#message-delete>`_.

        .. versionadded:: 2.5
    )
message_id
channel_idguild_idcached_messagedatac                    t        |d         | _        t        |d         | _        d | _        	 t        |d         | _        || _        y # t
        $ r d | _        Y || _        y w xY wNidrR   rS   )intrQ   rR   rT   rS   KeyErrorrU   r>   rU   s     r?   __init__zRawMessageDeleteEvent.__init__p   sh    "4:"4#56.2	-(+D,<(=DM )-	  	-(,DM(,		-s   A
 
A$#A$N)rU   r   rK   NonerF   rM   rN   __doc__rD   r\   rO   rI   r?   r%   r%   [   s    $ SI-rI   r%   c                      e Zd ZdZdZddZy)r&   a  Represents the event payload for a :func:`on_raw_bulk_message_delete` event.

    Attributes
    ----------
    message_ids: Set[:class:`int`]
        A :class:`set` of the message IDs that were deleted.
    channel_id: :class:`int`
        The channel ID where the message got deleted.
    guild_id: Optional[:class:`int`]
        The guild ID where the message got deleted, if applicable.
    cached_messages: List[:class:`Message`]
        The cached messages, if found in the internal message cache.
    data: :class:`dict`
        The raw data sent by the `gateway <https://discord.com/developers/docs/topics/gateway-events#message-delete-bulk>`_.

        .. versionadded:: 2.5
    )message_idsrR   rS   cached_messagesrU   c                   |j                  dg       D ch c]  }t        |       c}| _        t        |d         | _        g | _        	 t        |d         | _        || _        y c c}w # t        $ r d | _        Y || _        y w xY w)NidsrR   rS   )getrY   ra   rR   rb   rS   rZ   rU   )r>   rU   xs      r?   r\   z"RawBulkMessageDeleteEvent.__init__   s    6:hhub6I%Jc!f%J"4#56.0	-(+D,<(=DM -1	 &K  	-(,DM,0		-s   A%
A* *BBN)rU   r   rK   r]   r^   rO   rI   r?   r&   r&   {   s    $ UI	1rI   r&   c                      e Zd ZdZdZddZy)r'   a  Represents the payload for a :func:`on_raw_message_edit` event.

    Attributes
    ----------
    message_id: :class:`int`
        The message ID that got updated.
    channel_id: :class:`int`
        The channel ID where the update took place.

        .. versionadded:: 1.3
    guild_id: Optional[:class:`int`]
        The guild ID where the message got updated, if applicable.

        .. versionadded:: 1.7

    data: :class:`dict`
        The raw data sent by the `gateway <https://discord.com/developers/docs/topics/gateway#message-update>`_
    cached_message: Optional[:class:`Message`]
        The cached message, if found in the internal message cache. Represents the message before
        it is modified by the data in :attr:`RawMessageUpdateEvent.data`.
    )rQ   rR   rS   rU   rT   c                    t        |d         | _        t        |d         | _        || _        d | _        	 t        |d         | _        y # t        $ r
 d | _        Y y w xY wrW   )rY   rQ   rR   rU   rT   rS   rZ   r[   s     r?   r\   zRawMessageUpdateEvent.__init__   s]    "4:"4#56(,	.2	-(+D,<(=DM 	-(,DM	-s   A
 
AAN)rU   r   rK   r]   r^   rO   rI   r?   r'   r'      s    , SI	-rI   r'   c                  ,    e Zd ZdZdZ	 	 	 	 	 	 	 	 ddZy)r(   aC  Represents the payload for a :func:`on_raw_reaction_add` or
    :func:`on_raw_reaction_remove` event.

    Attributes
    ----------
    message_id: :class:`int`
        The message ID that got or lost a reaction.
    user_id: :class:`int`
        The user ID who added the reaction or whose reaction was removed.
    channel_id: :class:`int`
        The channel ID where the reaction got added or removed.
    guild_id: Optional[:class:`int`]
        The guild ID where the reaction got added or removed, if applicable.
    emoji: :class:`PartialEmoji`
        The custom or unicode emoji being used.
    member: Optional[:class:`Member`]
        The member who added the reaction. Only available if the reaction occurs within a guild.

        .. versionadded:: 1.3

    event_type: :class:`str`
        The event type that triggered this action. Can be
        ``REACTION_ADD`` for reaction addition or
        ``REACTION_REMOVE`` for reaction removal.

        .. versionadded:: 1.3
    burst: :class:`bool`
        Whether this reaction is a burst (super) reaction.
    burst_colours: Optional[:class:`list`]
        A list of hex codes this reaction can be. Only available if `event_type` is `REACTION_ADD`
        and this emoji has super reactions available.
    burst_colors: Optional[:class:`list`]
        Alias for :attr:`burst_colours`.
    type: :class:`ReactionType`
        The type of reaction added.
    data: :class:`dict`
        The raw data sent by the `gateway <https://discord.com/developers/docs/topics/gateway-events#message-reaction-add>`_.

        .. versionadded:: 2.5
    )rQ   user_idrR   rS   emojiburstburst_coloursburst_colorstype
event_typememberrU   c                   t        |d         | _        t        |d         | _        t        |d         | _        || _        || _        d | _        |j                  d      | _        |j                  dg       | _	        | j                  | _
        t        t        |j                  dd            | _        	 t        |d         | _        || _        y # t        $ r d | _        Y || _        y w xY w)	NrQ   rR   rj   rl   rn   ro   r   rS   )rY   rQ   rR   rj   rk   rp   rq   re   rl   rm   rn   r   r
   ro   rS   rZ   rU   )r>   rU   rk   rp   s       r?   r\   zRawReactionActionEvent.__init__   s      #4#56"4#56Y0#(
)%)88G,
#'88NB#?"&"4"4"*<&!9L"M		-(+D,<(=DM *.	  	-(,DM)-		-s   3C C('C(N)rU   r   rk   r   rp   rL   rK   r]   r^   rO   rI   r?   r(   r(      s4    'RI.'.0<.JM.	.rI   r(   c                      e Zd ZdZdZddZy)r)   a%  Represents the payload for a :func:`on_raw_reaction_clear` event.

    Attributes
    ----------
    message_id: :class:`int`
        The message ID that got its reactions cleared.
    channel_id: :class:`int`
        The channel ID where the reactions got cleared.
    guild_id: Optional[:class:`int`]
        The guild ID where the reactions got cleared.
    data: :class:`dict`
        The raw data sent by the `gateway <https://discord.com/developers/docs/topics/gateway-events#message-reaction-remove-all>`_.

        .. versionadded:: 2.5
    )rQ   rR   rS   rU   c                    t        |d         | _        t        |d         | _        	 t        |d         | _        || _        y # t        $ r d | _        Y || _        y w xY w)NrQ   rR   rS   )rY   rQ   rR   rS   rZ   rU   r[   s     r?   r\   zRawReactionClearEvent.__init__"  sb    "4#56"4#56	-(+D,<(=DM )-	  	-(,DM(,		-   A AAN)rU   r   rK   r]   r^   rO   rI   r?   r)   r)     s      AI-rI   r)   c                      e Zd ZdZdZddZy)r*   a  Represents the payload for a :func:`on_raw_reaction_clear_emoji` event.

    .. versionadded:: 1.3

    Attributes
    ----------
    message_id: :class:`int`
        The message ID that got its reactions cleared.
    channel_id: :class:`int`
        The channel ID where the reactions got cleared.
    guild_id: Optional[:class:`int`]
        The guild ID where the reactions got cleared.
    emoji: :class:`PartialEmoji`
        The custom or unicode emoji being removed.
    burst: :class:`bool`
        Whether this reaction was a burst (super) reaction.
    burst_colours: :class:`list`
        The available HEX codes of the removed super reaction.
    burst_colors: Optional[:class:`list`]
        Alias for :attr:`burst_colours`.
    type: :class:`ReactionType`
        The type of reaction removed.
    data: :class:`dict`
        The raw data sent by the `gateway <https://discord.com/developers/docs/topics/gateway-events#message-reaction-remove-emoji>`_.

        .. versionadded:: 2.5
    )	rQ   rR   rS   rk   rl   rU   rm   rn   ro   c                   || _         t        |d         | _        t        |d         | _        |j	                  d      | _        |j	                  dg       | _        | j                  | _        t        t        |j	                  dd            | _
        	 t        |d         | _        || _        y # t        $ r d | _        Y || _        y w xY w)NrQ   rR   rl   rn   ro   r   rS   )rk   rY   rQ   rR   re   rl   rm   rn   r   r
   ro   rS   rZ   rU   )r>   rU   rk   s      r?   r\   z#RawReactionClearEmojiEvent.__init__V  s    #(
"4#56"4#5688G,
#'88NB#?"&"4"4"*<&!9L"M		-(+D,<(=DM .2	  	-(,DM-1		-s   B- -CCN)rU   r   rk   r   rK   r]   r^   rO   rI   r?   r*   r*   -  s    8
I2rI   r*   c                      e Zd ZdZdZddZy)r+   aU  Represents the payload for a :func:`on_raw_integration_delete` event.

    .. versionadded:: 2.0

    Attributes
    ----------
    integration_id: :class:`int`
        The ID of the integration that got deleted.
    application_id: Optional[:class:`int`]
        The ID of the bot/OAuth2 application for this deleted integration.
    guild_id: :class:`int`
        The guild ID where the integration got deleted.
    data: :class:`dict`
        The raw data sent by the `gateway <https://discord.com/developers/docs/topics/gateway-events#integration-delete>`_.

        .. versionadded:: 2.5
    )integration_idapplication_idrS   rU   c                    t        |d         | _        t        |d         | _        	 t        |d         | _        || _        y # t        $ r d | _        Y || _        y w xY w)NrX   rS   rz   )rY   ry   rS   rz   rZ   rU   r[   s     r?   r\   z"RawIntegrationDeleteEvent.__init__{  sd    #&tDz? j!12	3.1$7G2H.ID -1	  	3.2D,0		3ru   N)rU   r   rK   r]   r^   rO   rI   r?   r+   r+   f  s    $ II1rI   r+   c                      e Zd ZdZdZddZy)r,   a  Represents the payload for an :func:`on_raw_thread_update` event.

    .. versionadded:: 2.4

    Attributes
    ----------
    thread_id: :class:`int`
        The ID of the updated thread.
    thread_type: :class:`discord.ChannelType`
        The channel type of the updated thread.
    guild_id: :class:`int`
        The ID of the guild the thread belongs to.
    parent_id: :class:`int`
        The ID of the channel the thread belongs to.
    data: :class:`dict`
        The raw data sent by the `gateway <https://discord.com/developers/docs/topics/gateway-events#thread-update>`_.
    thread: :class:`discord.Thread` | None
        The thread, if it could be found in the internal cache.
    )	thread_idthread_type	parent_idrS   rU   threadc                    t        |d         | _        t        t        |d         | _        t        |d         | _        t        |d         | _        || _        d | _        y NrX   ro   rS   r   )	rY   r}   r   r	   r~   rS   r   rU   r   r[   s     r?   r\   zRawThreadUpdateEvent.__init__  sT    !$t*o(0d6l(K j!12!${"34'+	%)rI   N)rU   r!   rK   r]   r^   rO   rI   r?   r,   r,     s    ( XI*rI   r,   c                      e Zd ZdZdZddZy)r-   a  Represents the payload for :func:`on_raw_thread_delete` event.

    .. versionadded:: 2.0

    Attributes
    ----------

    thread_id: :class:`int`
        The ID of the thread that was deleted.
    thread_type: :class:`discord.ChannelType`
        The channel type of the deleted thread.
    guild_id: :class:`int`
        The ID of the guild the deleted thread belonged to.
    parent_id: :class:`int`
        The ID of the channel the thread belonged to.
    thread: Optional[:class:`discord.Thread`]
        The thread that was deleted. This may be ``None`` if deleted thread is not found in internal cache.
    data: :class:`dict`
        The raw data sent by the `gateway <https://discord.com/developers/docs/topics/gateway-events#thread-delete>`_.

        .. versionadded:: 2.5
    )r}   r~   rS   r   r   rU   c                    t        |d         | _        t        t        t        |d               | _        t        |d         | _        t        |d         | _        d | _        || _        y r   )	rY   r}   r   r	   r~   rS   r   r   rU   r[   s     r?   r\   zRawThreadDeleteEvent.__init__  sY    !$t*o(0c$v,>O(P j!12!${"34%)'+	rI   N)rU   r   rK   r]   r^   rO   rI   r?   r-   r-     s    . XI,rI   r-   c                      e Zd ZdZdZddZy)r3   aB  Represents the payload for an :func:`on_raw_voice_channel_status_update` event.

    .. versionadded:: 2.5

    Attributes
    ----------
    id: :class:`int`
        The channel ID where the voice channel status update originated from.
    guild_id: :class:`int`
        The guild ID where the voice channel status update originated from.
    status: Optional[:class:`str`]
        The new new voice channel status.
    data: :class:`dict`
        The raw data sent by the `gateway <https://discord.com/developers/docs/topics/gateway-events#voice-channel-status-update>`_.
    )rX   rS   statusrU   c                    t        |d         | _        t        |d         | _        	 |d   | _        || _        y # t        $ r d | _        Y || _        y w xY w)NrX   rS   r   )rY   rX   rS   r   rZ   rU   r[   s     r?   r\   z)RawVoiceChannelStatusUpdateEvent.__init__  sZ    4: j!12	+&*8nDK 48	  	+&*DK37		+s   
: AAN)rU   r#   rK   r]   r^   rO   rI   r?   r3   r3     s      5I8rI   r3   c                      e Zd ZdZdZddZy)r.   a  Represents the payload for a :func:`on_raw_typing` event.

    .. versionadded:: 2.0

    Attributes
    ----------
    channel_id: :class:`int`
        The channel ID where the typing originated from.
    user_id: :class:`int`
        The ID of the user that started typing.
    when: :class:`datetime.datetime`
        When the typing started as an aware datetime in UTC.
    guild_id: Optional[:class:`int`]
        The guild ID where the typing originated from, if applicable.
    member: Optional[:class:`Member`]
        The member who started typing. Only available if the member started typing in a guild.
    data: :class:`dict`
        The raw data sent by the `gateway <https://discord.com/developers/docs/topics/gateway-events#typing-start>`_.

        .. versionadded:: 2.5
    )rR   rj   whenrS   rq   rU   c                h   t        |d         | _        t        |d         | _        t        j                  j	                  |j                  d      t        j                  j                        | _        d | _	        	 t        |d         | _
        || _        y # t        $ r d | _
        Y || _        y w xY w)NrR   rj   	timestamp)tzrS   )rY   rR   rj   datetimefromtimestampre   timezoneutcr   rq   rS   rZ   rU   r[   s     r?   r\   zRawTypingEvent.__init__   s    "4#56Y0'/'8'8'F'FHH[!h&7&7&;&; (G (
	 &*	-(+D,<(=DM "&	  	-(,DM!%		-s   <B B10B1N)rU   r"   rK   r]   r^   rO   rI   r?   r.   r.     s    , PI&rI   r.   c                      e Zd ZdZdZddZy)r/   a  Represents the payload for an :func:`on_raw_member_remove` event.

    .. versionadded:: 2.4

    Attributes
    ----------
    user: :class:`discord.User`
        The user that left the guild.
    guild_id: :class:`int`
        The ID of the guild the user left.
    data: :class:`dict`
        The raw data sent by the `gateway <https://discord.com/developers/docs/topics/gateway-events#guild-member-remove>`_.

        .. versionadded:: 2.5
    )userrS   rU   c                F    || _         t        |d         | _        || _        y )NrS   )r   rY   rS   rU   )r>   rU   r   s      r?   r\   zRawMemberRemoveEvent.__init__"  s!    	 j!12'+	rI   N)rU   r   r   r$   r^   rO   rI   r?   r/   r/     s      -I,rI   r/   c                      e Zd ZdZdZddZy)r0   a  Represents the payload for a :func:`raw_scheduled_event_user_add` or
    :func:`raw_scheduled_event_user_remove` event.

    .. versionadded:: 2.0

    Attributes
    ----------
    event_id: :class:`int`
        The event ID where the typing originated from.
    user_id: :class:`int`
        The ID of the user that subscribed/unsubscribed.
    guild: Optional[:class:`Guild`]
        The guild where the subscription/unsubscription happened.
    event_type: :class:`str`
        Can be either ``USER_ADD`` or ``USER_REMOVE`` depending on
        the event called.
    data: :class:`dict`
        The raw data sent by the `gateway <https://discord.com/developers/docs/topics/gateway-events#guild-scheduled-event-user-add>`_.

        .. versionadded:: 2.5
    )event_idguildrj   rp   rU   c                z    t        |d         | _        t        |d         | _        d | _        || _        || _        y )Nguild_scheduled_event_idrj   )rY   r   rj   r   rp   rU   )r>   rU   rp   s      r?   r\   z&RawScheduledEventSubscription.__init__A  s9     &@!ABY0#'
)04	rI   N)rU   r   rp   rL   r^   rO   rI   r?   r0   r0   (  s    , GI5rI   r0   c                  $    e Zd ZdZdZddZddZy)r   aR  Represents the payload for an :func:`on_auto_moderation_action_execution`

    .. versionadded:: 2.0

    Attributes
    ----------
    action: :class:`AutoModAction`
        The action that was executed.
    rule_id: :class:`int`
        The ID of the rule that the action belongs to.
    rule_trigger_type: :class:`AutoModTriggerType`
        The category of trigger the rule belongs to.

        .. versionadded:: 2.4
    guild_id: :class:`int`
        The ID of the guild that the action was executed in.
    guild: Optional[:class:`Guild`]
        The guild that the action was executed in, if cached.
    user_id: :class:`int`
        The ID of the user that triggered the action.
    member: Optional[:class:`Member`]
        The member that triggered the action, if cached.
    channel_id: Optional[:class:`int`]
        The ID of the channel in which the member's content was posted.
    channel: Optional[Union[:class:`TextChannel`, :class:`Thread`, :class:`VoiceChannel`, :class:`StageChannel`]]
        The channel in which the member's content was posted, if cached.
    message_id: Optional[:class:`int`]
        The ID of the message that triggered the action. This is only available if the
        message was not blocked.
    message: Optional[:class:`Message`]
        The message that triggered the action, if cached.
    alert_system_message_id: Optional[:class:`int`]
        The ID of the system auto moderation message that was posted as a result
        of the action.
    alert_system_message: Optional[:class:`Message`]
        The system auto moderation message that was posted as a result of the action,
        if cached.
    content: :class:`str`
        The content of the message that triggered the action.
    matched_keyword: :class:`str`
        The word or phrase configured that was matched in the content.
    matched_content: :class:`str`
        The substring in the content that was matched.
    data: :class:`dict`
        The raw data sent by the `gateway <https://discord.com/developers/docs/topics/gateway-events#auto-moderation-action-execution>`_.

        .. versionadded:: 2.5
    )actionrule_idrule_trigger_typerS   r   rj   rq   contentmatched_keywordmatched_contentrR   channelrQ   messagealert_system_message_idalert_system_messagerU   c                4   t        j                  |d         | _        t        |d         | _        t        t        t        |d               | _        t        |d         | _        |j                  | j                        | _
        t        |d         | _        |j                  dd       | _        |d   | _        |j                  dd       | _        | j                  r+| j                  j!                  | j                        | _        nd | _        	 t        |d	         | _        | j                  j'                  | j$                        | _        	 t        |d
         | _        |j/                  | j,                        | _        	 t        |d         | _        |j/                  | j2                        | _        || _        y # t*        $ r d | _        d | _        Y w xY w# t*        $ r d | _        d | _        Y rw xY w# t*        $ r d | _        d | _        Y || _        y w xY w)Nr   r   r   rS   rj   r   r   r   rR   rQ   r   )r   	from_dictr   rY   r   r   r   r   rS   
_get_guildr   rj   re   r   r   r   
get_memberrq   rR   get_channel_or_threadr   rZ   rQ   _get_messager   r   r   rU   )r>   staterU   s      r?   r\   z$AutoModActionExecutionEvent.__init__  s   %2%<%<T(^%LY05=D)<$= >6
 !j!12#(#3#3DMM#B
Y0#'88It#<$():$;+/884Et+L::)-)>)>t||)LDK)-DK		; +.d<.@*ADO6:jj6V6V7DL	0*-d<.@*ADO+0+=+=doo+NDL
		=7:./8D( 9>8J8J,,9D% -1	+  	;*.DO6:DL	;  	0*.DO+/DL	0  	=7;D(8<D%,0		=s6   =F< 3G 3G6 <GGG32G36HHc           	     p    d| j                   d| j                  d| j                  d| j                  d	S )Nz$<AutoModActionExecutionEvent action=z	 rule_id=z
 guild_id=z	 user_id=rB   )r   r   rS   rj   )r>   s    r?   rH   z$AutoModActionExecutionEvent.__repr__  sD    24;;/ B||&j0A B||&a)	
rI   N)r   r   rU   AutoModActionExecutionrK   r]   rJ   )rF   rM   rN   r_   rD   r\   rH   rO   rI   r?   r   r   I  s    /bI(.1`
rI   r   c                      e Zd ZdZdZddZy)r1   a8  Represents the payload for an :func:`on_raw_thread_member_remove` event.

    .. versionadded:: 2.4

    Attributes
    ----------
    thread_id: :class:`int`
        The ID of the thread that was updated.
    guild_id: :class:`int`
        The ID of the guild the thread is in.
    member_count: :class:`int`
        The approximate number of members in the thread. Maximum of 50.
    data: :class:`dict`
        The raw data sent by the `gateway <https://discord.com/developers/docs/topics/gateway-events#thread-members-update>`_.

        .. versionadded:: 2.5
    )r}   rS   member_countrU   c                    t        |d         | _        t        |d         | _        t        |d         | _        || _        y )NrX   rS   r   )rY   r}   rS   r   rU   r[   s     r?   r\   z$RawThreadMembersUpdateEvent.__init__  s;    T$ZD,-^ 45.2	rI   N)rU   r    rK   r]   r^   rO   rI   r?   r1   r1     s    $ BI3rI   r1   c                      e Zd ZdZdZddZy)r2   aE  Represents the payload for an :func:`on_raw_audit_log_entry` event.

    .. versionadded:: 2.5

    Attributes
    ----------
    action_type: :class:`AuditLogAction`
        The action that was done.
    id: :class:`int`
        The entry ID.
    guild_id: :class:`int`
        The ID of the guild this action came from.
    user_id: Optional[:class:`int`]
        The ID of the user who initiated this action.
    target_id: Optional[:class:`int`]
        The ID of the target that got changed.
    reason: Optional[:class:`str`]
        The reason this action was done.
    changes: Optional[:class:`list`]
        The changes that were made to the target.
    extra: Any
        Extra information that this entry has that might be useful.
        For most actions, this is ``None``. However, in some cases it
        contains extra information. See :class:`AuditLogAction` for
        which actions have this field filled out.
    data: :class:`dict`
        The raw data sent by the `gateway <https://discord.com/developers/docs/topics/gateway-events#guild-audit-log-entry-create>`_.
    )	rX   rj   rS   	target_idaction_typereasonextrachangesrU   c                   t        |d         | _        |j                  d      | _        | j                  rt        | j                        | _        t        |d         | _        |j                  d      | _        | j
                  rt        | j
                        | _        t        t        t        |d               | _        |j                  d      | _	        |j                  d      | _
        |j                  d      | _        || _        y )	NrX   rj   rS   r   r   r   optionsr   )rY   rX   re   rj   rS   r   r   r   r   r   r   r   rU   r[   s     r?   r\   zRawAuditLogEntryEvent.__init__  s    d4j/xx	*<<t||,DLD,-+.>> 0DN#NC]8K4LMhhx(XXi(
xx	*(,	rI   N)rU   r   rK   r]   r^   rO   rI   r?   r2   r2     s    :
I-rI   r2   c                      e Zd ZdZdZddZy)r4   a   Represents the payload for a :func:`on_message_poll_vote` event.

    .. versionadded:: 2.6

    Attributes
    ----------
    user_id: :class:`int`:
        The user that added or removed their vote
    message_id: :class:`int`
        The message ID of the poll that received the vote.
    channel_id: :class:`int`
        The channel ID where the vote was updated.
    guild_id: Optional[:class:`int`]
        The guild ID where the vote was updated, if applicable.
    answer_id: :class:`int`
        The answer ID of the vote that was updated.
    added: :class:`bool`
        Whether this vote was added or removed.
    data: :class:`dict`
        The raw data sent by the `gateway <https://discord.com/developers/docs/topics/gateway#message-poll-vote-add>`
    )rj   rQ   	answer_idrR   rS   rU   addedc                   t        |d         | _        t        |d         | _        t        |d         | _        t        |d         | _        || _        || _        	 t        |d         | _        y # t        $ r
 d | _        Y y w xY w)Nrj   rR   rQ   r   rS   )	rY   rj   rR   rQ   r   rU   r   rS   rZ   )r>   rU   r   s      r?   r\   z RawMessagePollVoteEvent.__init__>  s    Y0"4#56"4#56!${"34*.	 
	-(+D,<(=DM 	-(,DM	-s   A0 0BBN)rU   r   r   boolrK   r]   r^   rO   rI   r?   r4   r4     s    ,I-rI   r4   )Cr_   
__future__r   r   typingr   automodr   r   enumsr   r	   r
   r   abcr   r   r   rq   r   r   r   partial_emojir   r   r   threadsr   types.raw_modelsr   r   r   r   r   r   r   r   r   r   r   r   r   r   r    r!   r"   r#   r   r$   __all__r6   r%   r&   r'   r(   r)   r*   r+   r,   r-   r3   r.   r/   r0   r1   r2   r4   rO   rI   r?   <module>r      sE  2 #    6 F F' +&4W    " *6 6-M -@1 1B"-M "-JK.] K.\-M -<62 62r1 1@*= *@ ,=  ,F8} 8<%&] %&P,= ,25M 5B{
 {
|3- 387-M 7-t,-m ,-rI   