From 1fc08bc5a2ad8bd8aba7b98c37eb6e9deeaa61c2 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Tue, 18 Apr 2017 04:22:35 -0400 Subject: Remove unused imports. --- discord/message.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'discord/message.py') diff --git a/discord/message.py b/discord/message.py index 00e017f8..95519996 100644 --- a/discord/message.py +++ b/discord/message.py @@ -27,13 +27,9 @@ DEALINGS IN THE SOFTWARE. import asyncio import re -import discord.abc - from . import utils -from .user import User from .reaction import Reaction from .emoji import Emoji -from .object import Object from .calls import CallMessage from .enums import MessageType, try_enum from .errors import InvalidArgument, ClientException @@ -62,11 +58,8 @@ class Message: embeds: List[:class:`Embed`] A list embeds the message has. 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``. + The :class:`TextChannel` that the message was sent from. + Could be a :class:`DMChannel` or :class:`GroupChannel` if it's a private message. call: Optional[:class:`CallMessage`] The call that the message refers to. This is only applicable to messages of type :attr:`MessageType.call`. -- cgit v1.2.3