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

@ -38,6 +38,12 @@ class ClientException(DiscordException):
"""
pass
class NoMoreMessages(DiscordException):
"""Exception that is thrown when a ``history`` operation has no more
messages. This is only exposed for Python 3.4 only.
"""
pass
class GatewayNotFound(DiscordException):
"""An exception that is usually thrown when the gateway hub
for the :class:`Client` websocket is not found."""