Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias Import alias ClassDef bases body Expr Str Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str FunctionDef arguments args NameParam defaults kwarg body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults kwarg body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Str Dict Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str ListLoad Call AttributeLoad NameLoad attr Str ListLoad Assign NameStore Call NameLoad Lambda arguments args NameParam defaults CompareEq SubscriptLoad NameLoad Index Num Str AttributeLoad NameLoad attr For NameStore NameLoad body TryExcept body Expr Call NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body Pass decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr ListLoad If Call NameLoad AttributeLoad NameLoad attr Str NameLoad body Return If CompareIsNot AttributeLoad NameLoad attr NameLoad body For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body For NameStore AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore DictComp Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad BinOpAdd Str AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr Assign NameStore DictComp Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad BinOpAdd Str AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr Assign NameStore DictComp Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad BinOpAdd Str AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign NameStore DictComp Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad BinOpAdd Str AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Str decorator_list Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad Str attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str Str FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Str decorator_list Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad Str attr Call AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad If Call NameLoad AttributeLoad NameLoad attr NameLoad body Return If CompareIs AttributeLoad NameLoad attr NameLoad body If CompareIsNot NameLoad NameLoad body Assign AttributeStore NameLoad attr Call NameLoad keyword NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Return If UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr body Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr If CompareIsNot NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list
N/A N/A 
The MIT License (MIT)

Copyright (c) 2015-2016 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.
 N/A utils user User object Object N/A re Message N/A N/A N/A Represents a message from Discord.

    There should be no need to create one of these manually.

    Attributes
    -----------
    edited_timestamp : Optional[datetime.datetime]
        A naive UTC datetime object containing the edited time of the message.
    timestamp : datetime.datetime
        A naive UTC datetime object containing the time the message was created.
    tts : bool
        Specifies if the message was done with text-to-speech.
    author
        A :class:`Member` that sent the message. If :attr:`channel` is a
        private channel, then it is a :class:`User` instead.
    content : str
        The actual contents of the message.
    nonce
        The value used by the discord server and the client to verify that the message is successfully sent.
        This is typically non-important.
    embeds : list
        A list of embedded objects. The elements are objects that meet oEmbed's specification_.

        .. _specification: http://oembed.com/
    channel
        The :class:`Channel` that the message was sent from.
        Could be a :class:`PrivateChannel` if it's a private message.
        In :issue:`very rare cases <21>` this could be a :class:`Object` instead.

        For the sake of convenience, this :class:`Object` instance has an attribute ``is_private`` set to ``True``.
    server : Optional[:class:`Server`]
        The server that the message belongs to. If not applicable (i.e. a PM) then it's None instead.
    mention_everyone : bool
        Specifies if the message mentions everyone.

        .. note::

            This does not check if the ``@everyone`` text is in the message itself.
            Rather this boolean indicates if the ``@everyone`` text is in the message
            **and** it did end up mentioning everyone.

    mentions : list
        A list of :class:`Member` that were mentioned. If the message is in a private message
        then the list is always empty.

        .. 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
        A list of :class:`Channel` that were mentioned. If the message is in a private message
        then the list is always empty.
    role_mentions : list
        A list of :class:`Role`s that were mentioned. If the message is in a private message
        then the list is always empty.
    id : str
        The message ID.
    attachments : list
        A list of attachments given to a message.
     N/A __slots__ N/A edited_timestamp timestamp tts content channel mention_everyone embeds id mentions author channel_mentions server _raw_mentions attachments _clean_content _raw_channel_mentions nonce role_mentions _raw_role_mentions __init__ N/A N/A self N/A kwargs N/A N/A N/A N/A self _update kwargs N/A _update N/A N/A self N/A data N/A N/A N/A self edited_timestamp N/A N/A utils parse_time N/A N/A data get edited_timestamp N/A N/A self timestamp N/A N/A utils parse_time N/A N/A data get timestamp N/A N/A self tts N/A N/A data get tts N/A N/A self content N/A N/A data get content N/A N/A self mention_everyone N/A N/A data get mention_everyone N/A N/A self embeds N/A N/A data get embeds N/A N/A self id N/A N/A data get id N/A N/A self channel N/A N/A data get channel N/A N/A self author N/A User N/A N/A data get author N/A N/A N/A self nonce N/A N/A data get nonce N/A N/A self attachments N/A N/A data get attachments N/A N/A N/A self _handle_upgrades N/A N/A data get channel_id N/A N/A N/A self _handle_mentions N/A N/A data get mentions N/A N/A N/A data get mention_roles N/A N/A cached N/A filter N/A N/A N/A attr N/A N/A N/A attr N/A 0 _ N/A self __slots__ N/A attr cached N/A N/A N/A N/A N/A delattr self attr N/A N/A N/A AttributeError N/A N/A N/A _handle_mentions N/A N/A self mentions role_mentions N/A N/A N/A N/A self mentions N/A N/A N/A self channel_mentions N/A N/A N/A self role_mentions N/A N/A N/A getattr N/A self channel is_private True N/A N/A N/A N/A N/A self channel None N/A N/A mention mentions N/A N/A id_search N/A N/A mention get id N/A member N/A N/A N/A self server get_member id_search N/A N/A member None N/A N/A N/A N/A N/A self mentions append member N/A N/A N/A self server None N/A N/A mention N/A self raw_channel_mentions N/A N/A channel N/A N/A N/A self server get_channel mention N/A N/A channel None N/A N/A N/A N/A N/A self channel_mentions append channel N/A role_id role_mentions N/A N/A role N/A N/A utils get N/A N/A self server roles id role_id N/A N/A role None N/A N/A N/A N/A N/A self role_mentions append role N/A raw_mentions N/A N/A self N/A N/A N/A A property that returns an array of user IDs matched with
        the syntax of <@user_id> in the message content.

        This allows you receive the user IDs of mentioned users
        even in a private message context.
         N/A N/A N/A re findall <@!?([0-9]+)> N/A self content N/A N/A N/A utils cached_slot_property _raw_mentions raw_channel_mentions N/A N/A self N/A N/A N/A A property that returns an array of channel IDs matched with
        the syntax of <#channel_id> in the message content.
         N/A N/A N/A re findall <#([0-9]+)> N/A self content N/A N/A N/A utils cached_slot_property _raw_channel_mentions raw_role_mentions N/A N/A self N/A N/A N/A A property that returns an array of role IDs matched with
        the syntax of <@&role_id> in the message content.
         N/A N/A N/A re findall <@&([0-9]+)> N/A self content N/A N/A N/A utils cached_slot_property _raw_role_mentions clean_content N/A N/A self N/A N/A N/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.
         N/A transformations N/A N/A N/A re escape N/A N/A <#{0.id}> format channel N/A # N/A channel name N/A channel N/A self channel_mentions N/A mention_transforms N/A N/A N/A re escape N/A N/A <@{0.id}> format member N/A @ N/A member display_name N/A member N/A self mentions N/A second_mention_transforms N/A N/A N/A re escape N/A N/A <@!{0.id}> format member N/A @ N/A member display_name N/A member N/A self mentions N/A N/A N/A transformations update mention_transforms N/A N/A N/A transformations update second_mention_transforms N/A N/A N/A self server None N/A N/A role_transforms N/A N/A N/A re escape N/A N/A <@&{0.id}> format role N/A @ N/A role name N/A role N/A self role_mentions N/A N/A N/A transformations update role_transforms repl N/A N/A obj N/A N/A N/A N/A N/A transformations get N/A N/A re escape N/A N/A obj group 0 N/A N/A pattern N/A N/A re compile N/A N/A | join N/A N/A transformations keys N/A result N/A N/A pattern sub repl N/A self content N/A transformations N/A @everyone @here @\u200beveryone @\u200bhere repl2 N/A N/A obj N/A N/A N/A N/A N/A transformations get N/A N/A obj group 0 N/A N/A pattern N/A N/A re compile N/A N/A | join N/A N/A transformations keys N/A N/A N/A pattern sub repl2 result N/A N/A N/A utils cached_slot_property _clean_content _handle_upgrades N/A N/A self channel_id N/A N/A N/A N/A self server None N/A N/A isinstance N/A self channel Object N/A N/A N/A N/A N/A self channel None N/A N/A N/A channel_id None N/A N/A N/A self channel N/A Object id channel_id N/A N/A N/A self channel is_private True N/A N/A N/A N/A N/A self channel is_private N/A N/A N/A self server N/A N/A self channel server N/A found N/A N/A N/A self server get_member N/A N/A self author id N/A N/A found None N/A N/A N/A self author found N/A N/A