diff options
| author | Rapptz <[email protected]> | 2015-11-24 21:11:53 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2015-11-24 21:11:53 -0500 |
| commit | 7f94f75223d5cb3de0e7a9bc935680e5c0213eb9 (patch) | |
| tree | c4444eb550e331bd5c2a0352477ba44be4e5af89 /docs/api.rst | |
| parent | Merge send_raw_file and send_file (diff) | |
| download | discord.py-7f94f75223d5cb3de0e7a9bc935680e5c0213eb9.tar.xz discord.py-7f94f75223d5cb3de0e7a9bc935680e5c0213eb9.zip | |
Handle TYPING_START event.
Diffstat (limited to 'docs/api.rst')
| -rw-r--r-- | docs/api.rst | 12 |
1 files changed, 12 insertions, 0 deletions
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 ----------------- |