From 73919fe1523d6b5e2e61d01b493a080a68766eb0 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Sat, 5 Sep 2015 01:05:08 -0400 Subject: [PATCH] Documentation fixes and version bump. --- discord/__init__.py | 4 ++-- discord/client.py | 2 +- docs/api.rst | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/discord/__init__.py b/discord/__init__.py index 55023f7bc..28bdc5619 100644 --- a/discord/__init__.py +++ b/discord/__init__.py @@ -15,8 +15,8 @@ __title__ = 'discord' __author__ = 'Rapptz' __license__ = 'MIT' __copyright__ = 'Copyright 2015 Rapptz' -__version__ = '0.4.1' -__build__ = 0x004010 +__version__ = '0.5.0' +__build__ = 0x005000 from .client import Client from .user import User diff --git a/discord/client.py b/discord/client.py index 5789482c2..6934d943a 100644 --- a/discord/client.py +++ b/discord/client.py @@ -79,7 +79,7 @@ class Client(object): .. attribute:: messages A deque_ of :class:`Message` that the client has received from all servers and private messages. - .. attribute:: email + .. attribute:: email The email used to login. This is only set if login is successful, otherwise it's None. diff --git a/docs/api.rst b/docs/api.rst index 0081f29ea..387353335 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -18,7 +18,7 @@ Event Reference ~~~~~~~~~~~~~~~~ This page outlines the different types of events listened to by :meth:`Client.event`. -All events are 'sandboxed', in that if an exception is thrown while the event is called then it is caught and then ignored. +All events are 'sandboxed', in that if an exception is thrown while the event is called then it is caught and propagated to :func:`on_error`. .. function:: on_ready() @@ -69,7 +69,7 @@ All events are 'sandboxed', in that if an exception is thrown while the event is :param before: A :class:`Message` of the previous version of the message. :param after: A :class:`Message` of the current version of the message. -.. function:: on_status(member): +.. function:: on_status(member) Called whenever a :class:`Member` changes their status or game playing status.