Deprecate non-bot methods

This commit is contained in:
Nadir Chowdhury
2021-02-23 08:36:37 +00:00
committed by GitHub
parent 1cbc537734
commit 427e387a2f
8 changed files with 126 additions and 5 deletions

View File

@ -495,6 +495,8 @@ class Client:
Keyword argument that specifies if the account logging on is a bot
token or not.
.. deprecated:: 1.7
Raises
------
:exc:`.LoginFailure`
@ -1385,11 +1387,14 @@ class Client:
data = await self.http.get_user(user_id)
return User(state=self._connection, data=data)
@utils.deprecated()
async def fetch_user_profile(self, user_id):
"""|coro|
Gets an arbitrary user's profile.
.. deprecated:: 1.7
.. note::
This can only be used by non-bot accounts.