diff options
| author | Rapptz <[email protected]> | 2016-07-13 20:11:18 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2016-07-13 20:11:18 -0400 |
| commit | a128249b6324dd045561cb0be85cdabf8acd7694 (patch) | |
| tree | bcca950498a3aed2d8bd67fa31b115f8a70833ad /discord/channel.py | |
| parent | Handle CHANNEL_UPDATE for group direct messages. (diff) | |
| download | discord.py-a128249b6324dd045561cb0be85cdabf8acd7694.tar.xz discord.py-a128249b6324dd045561cb0be85cdabf8acd7694.zip | |
Add support for different message types and call message.
Diffstat (limited to 'discord/channel.py')
| -rw-r--r-- | discord/channel.py | 5 |
1 files changed, 4 insertions, 1 deletions
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) |