aboutsummaryrefslogtreecommitdiff
path: root/discord/message.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2017-04-18 04:22:35 -0400
committerRapptz <[email protected]>2017-04-18 04:22:35 -0400
commit1fc08bc5a2ad8bd8aba7b98c37eb6e9deeaa61c2 (patch)
tree932ace1acd9ca51117876241a6710f61015a3378 /discord/message.py
parentProperly cleanup of VoiceClients in cache. (diff)
downloaddiscord.py-1fc08bc5a2ad8bd8aba7b98c37eb6e9deeaa61c2.tar.xz
discord.py-1fc08bc5a2ad8bd8aba7b98c37eb6e9deeaa61c2.zip
Remove unused imports.
Diffstat (limited to 'discord/message.py')
-rw-r--r--discord/message.py11
1 files changed, 2 insertions, 9 deletions
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`.