Remove afk parameter from change_presence
This commit is contained in:
@ -967,7 +967,6 @@ class Client:
|
||||
*,
|
||||
activity: Optional[BaseActivity] = None,
|
||||
status: Optional[Status] = None,
|
||||
afk: bool = False,
|
||||
):
|
||||
"""|coro|
|
||||
|
||||
@ -981,6 +980,9 @@ class Client:
|
||||
game = discord.Game("with the API")
|
||||
await client.change_presence(status=discord.Status.idle, activity=game)
|
||||
|
||||
.. versionchanged:: 2.0
|
||||
Removed the ``afk`` keyword-only parameter.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
activity: Optional[:class:`.BaseActivity`]
|
||||
@ -988,10 +990,6 @@ class Client:
|
||||
status: Optional[:class:`.Status`]
|
||||
Indicates what status to change to. If ``None``, then
|
||||
:attr:`.Status.online` is used.
|
||||
afk: Optional[:class:`bool`]
|
||||
Indicates if you are going AFK. This allows the discord
|
||||
client to know how to handle push notifications better
|
||||
for you in case you are actually idle and not lying.
|
||||
|
||||
Raises
|
||||
------
|
||||
@ -1008,7 +1006,7 @@ class Client:
|
||||
else:
|
||||
status_str = str(status)
|
||||
|
||||
await self.ws.change_presence(activity=activity, status=status_str, afk=afk)
|
||||
await self.ws.change_presence(activity=activity, status=status_str)
|
||||
|
||||
for guild in self._connection.guilds:
|
||||
me = guild.me
|
||||
|
Reference in New Issue
Block a user