From a128249b6324dd045561cb0be85cdabf8acd7694 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Wed, 13 Jul 2016 20:11:18 -0400 Subject: Add support for different message types and call message. --- discord/channel.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'discord/channel.py') diff --git a/discord/channel.py b/discord/channel.py index ecccb24a..2c1c3495 100644 --- a/discord/channel.py +++ b/discord/channel.py @@ -301,6 +301,8 @@ class PrivateChannel(Hashable): ---------- recipients: list of :class:`User` The users you are participating with in the private channel. + me: :class:`User` + The user presenting yourself. id: str The private channel ID. is_private: bool @@ -318,11 +320,12 @@ class PrivateChannel(Hashable): :attr:`ChannelType.group` then this is always ``None``. """ - __slots__ = ['id', 'is_private', 'recipients', 'type', 'owner', 'icon', 'name'] + __slots__ = ['id', 'is_private', 'recipients', 'type', 'owner', 'icon', 'name', 'me'] def __init__(self, me, **kwargs): self.recipients = [User(**u) for u in kwargs['recipients']] self.id = kwargs['id'] + self.me = me self.is_private = True self.type = ChannelType(kwargs['type']) self._update_group(**kwargs) -- cgit v1.2.3