aboutsummaryrefslogtreecommitdiff
path: root/discord/errors.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2016-10-17 01:10:22 -0400
committerRapptz <[email protected]>2017-01-03 09:51:52 -0500
commit53ab2631252bf0977446d762f07b3821edb151ee (patch)
treeabb8a2e7a966aadb22df8a3ca2220b646eae3765 /discord/errors.py
parent[commands] Bot skip check now works with the new __eq__ changes. (diff)
downloaddiscord.py-53ab2631252bf0977446d762f07b3821edb151ee.tar.xz
discord.py-53ab2631252bf0977446d762f07b3821edb151ee.zip
Split channel types.
This splits them into the following: * DMChannel * GroupChannel * VoiceChannel * TextChannel This also makes the channels "stateful".
Diffstat (limited to 'discord/errors.py')
-rw-r--r--discord/errors.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/discord/errors.py b/discord/errors.py
index 46d5e940..5449b77e 100644
--- a/discord/errors.py
+++ b/discord/errors.py
@@ -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."""