diff options
| author | Rapptz <[email protected]> | 2016-11-30 17:08:55 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2016-11-30 17:08:55 -0500 |
| commit | 14a1bbcedac3ccd874d86e490e98e6d6314497f1 (patch) | |
| tree | b58af123fc0610ae0e484a060676184d09e870db /docs | |
| parent | Version bump to v0.15.1 (diff) | |
| download | discord.py-14a1bbcedac3ccd874d86e490e98e6d6314497f1.tar.xz discord.py-14a1bbcedac3ccd874d86e490e98e6d6314497f1.zip | |
Make FAQ use change_presence instead of change_status.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/faq.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/faq.rst b/docs/faq.rst index b3e5988b..1525b3a6 100644 --- a/docs/faq.rst +++ b/docs/faq.rst @@ -94,11 +94,11 @@ General questions regarding library usage belong here. How do I set the "Playing" status? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -There is a method for this under :class:`Client` called :meth:`Client.change_status`. The relevant aspect of this is its +There is a method for this under :class:`Client` called :meth:`Client.change_presence`. The relevant aspect of this is its ``game`` keyword argument which takes in a :class:`Game` object. Putting both of these pieces of info together, you get the following: :: - await client.change_status(game=discord.Game(name='my game')) + await client.change_presence(game=discord.Game(name='my game')) How do I send a message to a specific channel? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -133,9 +133,9 @@ The second is by passing the file name directly: :: How can I add a reaction to a message? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -You use the :meth:`Client.add_reaction` method. +You use the :meth:`Client.add_reaction` method. -If you want to use unicode emoji, you must pass a valid unicode code point in a string. In your code, you can write this in a few different ways: +If you want to use unicode emoji, you must pass a valid unicode code point in a string. In your code, you can write this in a few different ways: - ``'👍'`` - ``'\U0001F44D'`` |