Split channel types.

This splits them into the following:

* DMChannel
* GroupChannel
* VoiceChannel
* TextChannel

This also makes the channels "stateful".
This commit is contained in:
Rapptz
2016-10-17 01:10:22 -04:00
parent 20251c54a7
commit 53ab263125
10 changed files with 718 additions and 177 deletions

View File

@ -57,7 +57,7 @@ class CallMessage:
@property
def channel(self):
""":class:`PrivateChannel`\: The private channel associated with this message."""
""":class:`GroupChannel`\: The private channel associated with this message."""
return self.message.channel
@property
@ -131,7 +131,7 @@ class GroupCall:
@property
def channel(self):
""":class:`PrivateChannel`\: Returns the channel the group call is in."""
""":class:`GroupChannel`\: Returns the channel the group call is in."""
return self.call.channel
def voice_state_for(self, user):