mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-07 10:22:59 +00:00
Make FAQ use change_presence instead of change_status.
This commit is contained in:
@ -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?
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
Reference in New Issue
Block a user