
    i=b                       d Z ddlmZ ddlmZmZmZmZmZ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mZmZmZ dd
lmZ dZe
r$ddl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(  G d d          Z G d de          ZdS )a:  
The MIT License (MIT)

Copyright (c) 2015-present Rapptz

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

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

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
    )annotations)AnyDictListOptionalUnionoverloadTYPE_CHECKING   )Asset)Permissions)Colour)Hashable)snowflake_time_bytes_to_base64_data_get_as_snowflakeMISSING)	RoleFlags)RoleTagsRoleN)r   r   )RolePositionUpdate)Guild)Member)ConnectionStatec                  N    e Zd Z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S )r   a  Represents tags on a role.

    A role tag is a piece of extra information attached to a managed role
    that gives it context for the reason the role is managed.

    While this can be accessed, a useful interface is also provided in the
    :class:`Role` and :class:`Guild` classes as well.

    .. versionadded:: 1.6

    Attributes
    ------------
    bot_id: Optional[:class:`int`]
        The bot's user ID that manages this role.
    integration_id: Optional[:class:`int`]
        The integration ID that manages the role.
    subscription_listing_id: Optional[:class:`int`]
        The ID of this role's subscription SKU and listing.

        .. versionadded:: 2.2
    )bot_idintegration_id_premium_subscriber_available_for_purchasesubscription_listing_id_guild_connectionsdataRoleTagPayloadc                P   t          |d          | _        t          |d          | _        t          |d          | _        |                    dt
                    d u | _        |                    dt
                    d u | _        |                    dt
                    d u | _        d S )Nr   r   r    premium_subscriberavailable_for_purchaseguild_connections)	r   r   r   r    getr   r   r   r!   )selfr"   s     S/home/ubuntu/.hermes/hermes-agent/venv/lib/python3.11/site-packages/discord/role.py__init__zRoleTags.__init__T   s    %6tX%F%F->tEU-V-V6GNg6h6h$ *.2F)P)PTX)X -1XX6NPW-X-X\`-`$(,1Dg(N(NRV(V    returnboolc                    | j         duS )z9:class:`bool`: Whether the role is associated with a bot.N)r   r)   s    r*   is_bot_managedzRoleTags.is_bot_manageda   s    {$&&r,   c                    | j         S )z[:class:`bool`: Whether the role is the premium subscriber, AKA "boost", role for the guild.)r   r0   s    r*   is_premium_subscriberzRoleTags.is_premium_subscribere   s    ''r,   c                    | j         duS )z=:class:`bool`: Whether the role is managed by an integration.N)r   r0   s    r*   is_integrationzRoleTags.is_integrationi   s    "$..r,   c                    | j         S )zb:class:`bool`: Whether the role is available for purchase.

        .. versionadded:: 2.2
        )r   r0   s    r*   is_available_for_purchasez"RoleTags.is_available_for_purchasem   s    
 ++r,   c                    | j         S )za:class:`bool`: Whether the role is a guild's linked role.

        .. versionadded:: 2.2
        )r!   r0   s    r*   is_guild_connectionzRoleTags.is_guild_connectiont   s    
 &&r,   strc                R    d| j          d| j         d|                                  dS )Nz<RoleTags bot_id=z integration_id=z premium_subscriber=>)r   r   r3   r0   s    r*   __repr__zRoleTags.__repr__{   sO    B B BT=P B B"&"<"<">">B B B	
r,   N)r"   r#   r-   r.   r-   r:   )__name__
__module____qualname____doc__	__slots__r+   r1   r3   r5   r7   r9   r=    r,   r*   r   r   4   s         ,IW W W W' ' ' '( ( ( (/ / / /, , , ,' ' ' '
 
 
 
 
 
r,   r   c                     e Zd ZdZdZdYd	ZdZdZdZd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d^dZed_d            Zed_d            Zed_d            Zed_d             Zed`d"            Zedad$            Zedad%            Zedbd'            Zedcd)            Zeddd+            ZedZd,            Zeded.            Zedfd0            Zdgd6Z e!e!e!e!e!e!e!e!e!e!e!e!e!d7dhdGZ"e#dHdHdIdidL            Z$e#dHdHdIdjdN            Z$e#dHdHdIdkdP            Z$e#dHdHdIdldR            Z$e!e!e!e!dSdTdUdmdVZ$dTdWdndXZ%dTS )or   a  Represents a Discord role in a :class:`Guild`.

    .. container:: operations

        .. describe:: x == y

            Checks if two roles are equal.

        .. describe:: x != y

            Checks if two roles are not equal.

        .. describe:: x > y

            Checks if a role is higher than another in the hierarchy.

        .. describe:: x < y

            Checks if a role is lower than another in the hierarchy.

        .. describe:: x >= y

            Checks if a role is higher or equal to another in the hierarchy.

        .. describe:: x <= y

            Checks if a role is lower or equal to another in the hierarchy.

        .. describe:: hash(x)

            Return the role's hash.

        .. describe:: str(x)

            Returns the role's name.

    Attributes
    ----------
    id: :class:`int`
        The ID for the role.
    name: :class:`str`
        The name of the role.
    guild: :class:`Guild`
        The guild the role belongs to.
    hoist: :class:`bool`
         Indicates if the role will be displayed separately from other members.
    position: :class:`int`
        The position of the role. This number is usually positive. The bottom
        role has a position of 0.

        .. warning::

            Multiple roles can have the same position number. As a consequence
            of this, comparing via role position is prone to subtle bugs if
            checking for role hierarchy. The recommended and correct way to
            compare for roles in the hierarchy is using the comparison
            operators on the role objects themselves.

    unicode_emoji: Optional[:class:`str`]
        The role's unicode emoji, if available.

        .. note::

            If :attr:`icon` is not ``None``, it is displayed as role icon
            instead of the unicode emoji under this attribute.

            If you want the icon that a role has displayed, consider using :attr:`display_icon`.

        .. versionadded:: 2.0

    managed: :class:`bool`
        Indicates if the role is managed by the guild through some form of
        integrations such as Twitch.
    mentionable: :class:`bool`
        Indicates if the role can be mentioned by users.
    tags: Optional[:class:`RoleTags`]
        The role tags associated with this role.
    )idname_permissions_colourposition_iconunicode_emojimanagedmentionablehoistguildtags_flags_state_secondary_colour_tertiary_colourrQ   r   stater   r"   RolePayloadc                   || _         || _        t          |d                   | _        |                     |           d S )NrG   )rQ   rT   intrG   _update)r)   rQ   rW   r"   s       r*   r+   zRole.__init__   s9    !
',4:Tr,   r-   r:   c                    | j         S N)rH   r0   s    r*   __str__zRole.__str__   s
    yr,   c                (    d| j          d| j        dS )Nz	<Role id=z name=r<   )rG   rH   r0   s    r*   r=   zRole.__repr__   s    84788$)8888r,   otherobjectr.   c                N   t          |t                    rt          | t                    st          S | j        |j        k    rt	          d          | j        j        }| j        |k    r|j        |k    S | j        |j        k     rdS | j        |j        k    r| j        |j        k    S dS )Nz/cannot compare roles from two different guilds.TF)
isinstancer   NotImplementedrQ   RuntimeErrorrG   rK   )r)   r`   guild_ids      r*   __lt__zRole.__lt__   s    %&& 	"jt.D.D 	"!!:$$PQQQ :=7h8x''=5>))4=EN**7UX%%ur,   r   c                ^    t                               ||           }|t          u rt          S | S r]   r   rg   rd   r)   r`   rs      r*   __le__zRole.__le__  s-    KKt$$!!ur,   c                8    t                               ||           S r]   )r   rg   )r)   r`   s     r*   __gt__zRole.__gt__  s    {{5$'''r,   c                ^    t                               | |          }|t          u rt          S | S r]   ri   rj   s      r*   __ge__zRole.__ge__  s-    KKe$$!!ur,   c                   |                     di           }|d         | _        t          |                     dd                    | _        |                     dd          | _        |                     dd          | _        |                     dd          | _        |                     d	          | _        |                     d
          | _        |                     dd          | _	        |                     dd          | _
        |  |                     dd          | _        |                     dd           | _        |                     dd           | _        	 t          |d                   | _        d S # t           $ r d | _        Y d S w xY w)NcolorsrH   permissionsr   rK   primary_colorrP   FiconrM   rN   rO   flagssecondary_colortertiary_colorrR   )r(   rH   rZ   rI   rK   rJ   rP   rL   rM   rN   rO   rS   rU   rV   r   rR   KeyError)r)   r"   rr   s      r*   r[   zRole._update  s\   (B''f	!$TXXmQ%?%?!@!@!XXj!44"JJ::88GU33
$(HHV$4$4
,0HH_,E,E!XXi77!%-!?!?%88GQ//!',=t!D!D &

+;T B B	 f..DIII 	 	 	DIIII	s   E7 7FFc                ,    | j         j        | j        k    S )z6:class:`bool`: Checks if the role is the default role.)rQ   rG   r0   s    r*   
is_defaultzRole.is_default*  s    z}''r,   c                F    | j         duo| j                                         S )za:class:`bool`: Whether the role is associated with a bot.

        .. versionadded:: 1.6
        N)rR   r1   r0   s    r*   r1   zRole.is_bot_managed.  $    
 y$C)A)A)C)CCr,   c                F    | j         duo| j                                         S )z:class:`bool`: Whether the role is the premium subscriber, AKA "boost", role for the guild.

        .. versionadded:: 1.6
        N)rR   r3   r0   s    r*   r3   zRole.is_premium_subscriber5  s$    
 y$J)H)H)J)JJr,   c                F    | j         duo| j                                         S )ze:class:`bool`: Whether the role is managed by an integration.

        .. versionadded:: 1.6
        N)rR   r5   r0   s    r*   r5   zRole.is_integration<  r}   r,   c                    | j         j        }|                                  o'| j         o|j        | k    p|j        | j         j        k    S )zu:class:`bool`: Whether the role is able to be assigned or removed by the bot.

        .. versionadded:: 2.0
        )rQ   mer{   rN   top_rolerG   owner_id)r)   r   s     r*   is_assignablezRole.is_assignableC  sK    
 Z]??$$$rT\)9rr{T?Q?qUWUZ^b^h^qUqrr,   Optional[Colour]c                <    | j         t          | j                   ndS )z_Optional[:class:`Colour`]: The role's secondary colour.

        .. versionadded:: 2.6
        N)rU   r   r0   s    r*   secondary_colourzRole.secondary_colourK  s#     261G1Svd,---Y]]r,   c                    | j         S )zfOptional[:class:`Colour`]: Alias for :attr:`secondary_colour`.

        .. versionadded:: 2.6
        )r   r0   s    r*   rw   zRole.secondary_colorS  s     $$r,   c                <    | j         t          | j                   ndS )z^Optional[:class:`Colour`]: The role's tertiary colour.

        .. versionadded:: 2.6
        N)rV   r   r0   s    r*   tertiary_colourzRole.tertiary_colour[  s#     150E0Qvd+,,,W[[r,   c                    | j         S )zeOptional[:class:`Colour`]: Alias for :attr:`tertiary_colour`.

        .. versionadded:: 2.6
        )r   r0   s    r*   rx   zRole.tertiary_colorc  s     ##r,   r   c                *    t          | j                  S )z5:class:`Permissions`: Returns the role's permissions.)r   rI   r0   s    r*   rs   zRole.permissionsk  s     4,---r,   r   c                *    t          | j                  S )zT:class:`Colour`: Returns the role's primary colour. An alias exists under ``color``.)r   rJ   r0   s    r*   colourzRole.colourp  s     dl###r,   c                    | j         S )zU:class:`Colour`: Returns the role's primary colour. An alias exists under ``colour``.)r   r0   s    r*   colorz
Role.coloru  s     {r,   Optional[Asset]c                b    | j         dS t          j        | j        | j        | j         d          S )aq  Optional[:class:`.Asset`]: Returns the role's icon asset, if available.

        .. note::
            If this is ``None``, the role might instead have unicode emoji as its icon
            if :attr:`unicode_emoji` is not ``None``.

            If you want the icon that a role has displayed, consider using :attr:`display_icon`.

        .. versionadded:: 2.0
        Nrole)path)rL   r   
_from_iconrT   rG   r0   s    r*   ru   z	Role.iconz  s1     :4TWdjvNNNNr,   Optional[Union[Asset, str]]c                    | j         p| j        S )zOptional[Union[:class:`.Asset`, :class:`str`]]: Returns the role's display icon, if available.

        .. versionadded:: 2.0
        )ru   rM   r0   s    r*   display_iconzRole.display_icon  s     y.D..r,   datetime.datetimec                *    t          | j                  S )zD:class:`datetime.datetime`: Returns the role's creation time in UTC.)r   rG   r0   s    r*   
created_atzRole.created_at  s     dg&&&r,   c                    d| j          dS )zA:class:`str`: Returns a string that allows you to mention a role.z<@&r<   rG   r0   s    r*   mentionzRole.mention  s      TWr,   List[Member]c                    t          | j        j                                                  }|                                 r|S | j        fd|D             S )z>List[:class:`Member`]: Returns all the members with this role.c                H    g | ]}|j                                       |S rE   )_roleshas).0memberrole_ids     r*   
<listcomp>z Role.members.<locals>.<listcomp>  s.    OOO6FM4E4Eg4N4NOOOOr,   )listrQ   _membersvaluesr{   rG   )r)   all_membersr   s     @r*   memberszRole.members  s\     4:.557788?? 	'OOOO[OOOOr,   r   c                4    t          j        | j                  S )zU:class:`RoleFlags`: Returns the role's flags.

        .. versionadded:: 2.4
        )r   _from_valuerS   r0   s    r*   rv   z
Role.flags  s     $T[111r,   rK   rZ   reasonOptional[str]Nonec                j   K   |dk    rt          d                                           rt          d           j        |k    rd S  j        j        }t          t           j        |          t           j        |          dz              fd j        j	        dd          D             } j        |k    r|
                    d j                   n|                     j                   d t          |          D             }|                     j        j        ||           d {V  d S )Nr   z'Cannot move role to position 0 or belowzCannot move default roler   c                P    g | ]"}|j         v |j        j        k    |j        #S rE   )rK   rG   )r   rk   change_ranger)   s     r*   r   zRole._move.<locals>.<listcomp>  s9    fff!qz\7Q7QVWVZ^b^eVeVeVeVeVer,   c                0    g | ]}|d          |d         dS )r   r   rG   rK   rE   )r   zs     r*   r   zRole._move.<locals>.<listcomp>  s)    ,n,n,nPQAaDad-K-K,n,n,nr,   r   )
ValueErrorr{   rK   rT   httprangeminmaxrQ   rolesinsertrG   appendzipmove_role_position)r)   rK   r   r   r   payloadr   s   `     @r*   _movez
Role._move  sE     q==FGGG?? 	97888=H$$F{S993t}h;W;WZ[;[\\ffffftz/3fff=8##LLDG$$$$LL!!!,n,nUXY^`lUmUm,n,n,n%%djmWV%LLLLLLLLLLLr,   )rH   rs   r   r   rP   r   rO   rK   r   rw   rx   r   r   rH   rs   r   Union[Colour, int]r   rP   r   Optional[Union[bytes, str]]rO   rw   Optional[Union[Colour, int]]rx   r   r   Optional[Role]c               T  K   |t           ur|                     ||	           d{V  i }i }|t           ur|}|t           ur%t          |t                    r||d<   n
|j        |d<   |t           ur||d<   |t           ur
|j        |d<   |t           ur||d<   |t           ur7d|d<   d|d<   t          |t
                    rt          |          |d<   n||d<   |t           ur||d	<   |p|
}|p|}|t           ur-|d|d
<   n%t          |t                    r||d
<   n
|j        |d
<   |t           ur-|d|d<   n%t          |t                    r||d<   n
|j        |d<   |r||d<    | j        j        j	        | j
        j        | j        fd|	i| d{V }t          | j
        || j                  S )a
  |coro|

        Edits the role.

        You must have :attr:`~Permissions.manage_roles` to do this.

        All fields are optional.

        .. versionchanged:: 1.4
            Can now pass ``int`` to ``colour`` keyword-only parameter.

        .. versionchanged:: 2.0
            Edits are no longer in-place, the newly edited role is returned instead.

        .. versionadded:: 2.0
            The ``display_icon`` keyword-only parameter was added.

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

        .. versionchanged:: 2.6
            The ``colour`` and ``color`` parameters now set the role's primary color.

        Parameters
        -----------
        name: :class:`str`
            The new role name to change to.
        permissions: :class:`Permissions`
            The new permissions to change to.
        colour: Union[:class:`Colour`, :class:`int`]
            The new colour to change to. (aliased to color as well)
        secondary_colour: Optional[Union[:class:`Colour`, :class:`int`]]
            The new secondary colour for the role.

            .. versionadded:: 2.6
        tertiary_colour: Optional[Union[:class:`Colour`, :class:`int`]]
            The new tertiary colour for the role. Can only be used for the holographic role preset,
            which is ``(11127295, 16759788, 16761760)``

            .. versionadded:: 2.6
        hoist: :class:`bool`
            Indicates if the role should be shown separately in the member list.
        display_icon: Optional[Union[:class:`bytes`, :class:`str`]]
            A :term:`py:bytes-like object` representing the icon
            or :class:`str` representing unicode emoji that should be used as a role icon.
            Could be ``None`` to denote removal of the icon.
            Only PNG/JPEG is supported.
            This is only available to guilds that contain ``ROLE_ICONS`` in :attr:`Guild.features`.
        mentionable: :class:`bool`
            Indicates if the role should be mentionable by others.
        position: :class:`int`
            The new role's position. This must be below your top role's
            position or it will fail.
        reason: Optional[:class:`str`]
            The reason for editing this role. Shows up on the audit log.

        Raises
        -------
        Forbidden
            You do not have permissions to change the role.
        HTTPException
            Editing the role failed.
        ValueError
            An invalid position was given or the default
            role was asked to be moved.

        Returns
        --------
        :class:`Role`
            The newly edited role.
        r   Nrt   rH   rs   rP   ru   rM   rO   rw   rx   rr   r   )rQ   r"   rW   )r   r   rc   rZ   valuebytesr   rT   r   	edit_rolerQ   rG   r   )r)   rH   rs   r   r   rP   r   rO   rK   r   rw   rx   r   r   r   coloursactual_secondary_colouractual_tertiary_colourr"   s                      r*   editz	Role.edit  sM     r 7""**Xf*555555555"$"$F  &#&& 8+1((+1<(w"GFOg%%%0%6GM"$GGw&&"GFO'+GO$,.. 8"7"E"E+7(g%%%0GM""2"Eo!0!BN"'11&.-1)**3S99 K-D)**-D-J)*!00%-,0())2C88 I,B()),B,H() 	( 'GH/T[%/
twaavaY`aaaaaaaa$*4t{CCCCr,   .)offsetr   	beginningr   c               
   K   d S r]   rE   )r)   r   r   r   s       r*   movez	Role.moveY  s      ^a^ar,   endc               
   K   d S r]   rE   )r)   r   r   r   s       r*   r   z	Role.move\  s      X[X[r,   abovec               
   K   d S r]   rE   )r)   r   r   r   s       r*   r   z	Role.move_        Z]Z]r,   belowc               
   K   d S r]   rE   )r)   r   r   r   s       r*   r   z	Role.moveb  r   r,   r   N)r   r   r   r   r   r   c                  K   t          d ||||fD                       dk    rt          d          |p|} j        }|j        }	|rB||	vrt	          d          ||j        k    rt	          d           |k    rt	          d           fd|	D             }
|rd}n^|rt          |
          }nL||
v r|
                    |          }n2||
v r|
                    |          dz   }n|	                               }|
                    t          ||z   d                      d t          |
          D             } j        j                            |j        ||	           d
{V  d
S )a  |coro|

        A rich interface to help move a role relative to other roles.

        You must have :attr:`~discord.Permissions.manage_roles` to do this,
        and you cannot move roles above the client's top role in the guild.

        .. versionadded:: 2.5

        Parameters
        -----------
        beginning: :class:`bool`
            Whether to move this at the beginning of the role list, above the default role.
            This is mutually exclusive with `end`, `above`, and `below`.
        end: :class:`bool`
            Whether to move this at the end of the role list.
            This is mutually exclusive with `beginning`, `above`, and `below`.
        above: :class:`Role`
            The role that should be above our current role.
            This mutually exclusive with `beginning`, `end`, and `below`.
        below: :class:`Role`
            The role that should be below our current role.
            This mutually exclusive with `beginning`, `end`, and `above`.
        offset: :class:`int`
            The number of roles to offset the move by. For example,
            an offset of ``2`` with ``beginning=True`` would move
            it 2 above the beginning. A positive number moves it above
            while a negative number moves it below. Note that this
            number is relative and computed after the ``beginning``,
            ``end``, ``before``, and ``after`` parameters.
        reason: Optional[:class:`str`]
            The reason for editing this role. Shows up on the audit log.

        Raises
        -------
        Forbidden
            You cannot move the role there, or lack permissions to do so.
        HTTPException
            Moving the role failed.
        TypeError
            A bad mix of arguments were passed.
        ValueError
            An invalid role was passed.

        Returns
        --------
        List[:class:`Role`]
            A list of all the roles in the guild.
        c              3  4   K   | ]}t          |          V  d S r]   )r.   )r   as     r*   	<genexpr>zRole.move.<locals>.<genexpr>  s(      ??1tAww??????r,   r   z7Only one of [beginning, end, above, below] can be used.z%Target role is from a different guildz+Role cannot be moved below the default rolezTarget role cannot be itselfc                     g | ]
}|k    |S rE   rE   )r   rk   r)   s     r*   r   zRole.move.<locals>.<listcomp>  s    555q199999r,   c                (    g | ]\  }}|j         |d S )r   r   )r   idxr   s      r*   r   zRole.move.<locals>.<listcomp>  s)    ,p,p,pR[RUW[DG-M-M,p,p,pr,   r   N)sum	TypeErrorrQ   r   r   default_rolelenindexr   r   	enumeraterT   r   r   rG   )r)   r   r   r   r   r   r   targetrQ   guild_rolesr   r   r   s   `            r*   r   z	Role.movee  s     v ??C >?????!CCUVVV%
k 	A[(( !HIII*** !NOOOv~~ !?@@@5555K555 		,EE 	,JJEEe^^KK&&EEe^^KK&&*EE%%d++ES%&.1--t444,p,p_hin_o_o,p,p,pk11%(GF1SSSSSSSSSSSr,   r   c               x   K   | j         j                            | j        j        | j        |           d{V  dS )a  |coro|

        Deletes the role.

        You must have :attr:`~Permissions.manage_roles` to do this.

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

        Raises
        --------
        Forbidden
            You do not have permissions to delete the role.
        HTTPException
            Deleting the role failed.
        r   N)rT   r   delete_rolerQ   rG   )r)   r   s     r*   deletezRole.delete  sF      ( k**4:=$'&*QQQQQQQQQQQr,   )rQ   r   rW   r   r"   rX   r?   )r`   ra   r-   r.   )r`   r   r-   r.   )r"   rX   r>   )r-   r   )r-   r   )r-   r   )r-   r   )r-   r   )r-   r   )r-   r   )r-   r   )rK   rZ   r   r   r-   r   )rH   r:   rs   r   r   r   r   r   rP   r.   r   r   rO   r.   rK   rZ   r   r   rw   r   rx   r   r   r   r   r   r-   r   )r   r.   r   rZ   r   r   )r   r.   r   rZ   r   r   )r   r   r   rZ   r   r   )r   r   r   rZ   r   r   )r   r.   r   r.   r   r   r   r   r   rZ   r   r   )r   r   r-   r   )&r@   rA   rB   rC   rD   r+   r^   r=   rg   rl   rn   rp   r[   r{   r1   r3   r5   r   propertyr   rw   r   rx   rs   r   r   ru   r   r   r   r   rv   r   r   r   r	   r   r   rE   r,   r*   r   r      sL       M M^I&      9 9 9 9   *   ( ( ( (      *( ( ( (D D D DK K K KD D D Ds s s s ^ ^ ^ X^ % % % X% \ \ \ X\ $ $ $ X$ . . . X. $ $ $ X$    X O O O XO / / / X/ ' ' ' X'       X  P P P XP 2 2 2 X2M M M M4 #*%,$+4;# '8?7>9@8?RD RD RD RD RD RDh ;>X[aaaaa Xa58RU[[[[[ X[7:TW]]]]] X]7:TW]]]]] X]
 " $XT XT XT XT XT XTt 7; R R R R R R R Rr,   r   ))rC   
__future__r   typingr   r   r   r   r   r	   r
   assetr   rs   r   r   r   mixinsr   utilsr   r   r   r   rv   r   __all__datetime
types.roler   rX   r   r#   types.guildr   rQ   r   r   r   rW   r   rE   r,   r*   <module>r      s   0 # " " " " " L L L L L L L L L L L L L L L L L L       $ $ $ $ $ $             T T T T T T T T T T T T      
  	'OOO        0/////&&&&&&K
 K
 K
 K
 K
 K
 K
 K
\Q	R Q	R Q	R Q	R Q	R8 Q	R Q	R Q	R Q	R Q	Rr,   