From 7f94f75223d5cb3de0e7a9bc935680e5c0213eb9 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Tue, 24 Nov 2015 21:11:53 -0500 Subject: Handle TYPING_START event. --- docs/api.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'docs') diff --git a/docs/api.rst b/docs/api.rst index 5ffc9966..f7fcbc8f 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -246,6 +246,18 @@ to handle it, which defaults to print a traceback and ignore the exception. :param member: The :class:`Member` whose voice state changed. +.. function:: on_typing(channel, user, when) + + Called when someone begins typing a message. + + The ``channel`` parameter could either be a :class:`PrivateChannel` or a + :class:`Channel`. + + :param channel: The location where the typing originated from. + :param user: The :class:`Member` that started typing. + :param when: A ``datetime.datetime`` object representing when typing started. + + Utility Functions ----------------- -- cgit v1.2.3