Make FAQ use change_presence instead of change_status.

This commit is contained in:
Rapptz 2016-11-30 17:08:55 -05:00
parent 64733c0b19
commit 14a1bbceda

View File

@ -94,11 +94,11 @@ General questions regarding library usage belong here.
How do I set the "Playing" status? 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 ``game`` keyword argument which takes in a :class:`Game` object. Putting both of these pieces of info together, you get the
following: :: 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? How do I send a message to a specific channel?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~