diff options
| author | Nadir Chowdhury <[email protected]> | 2021-02-23 08:36:37 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-02-23 03:36:37 -0500 |
| commit | 427e387a2f487cf27d4a7ed5b49cc4c4bcae58ed (patch) | |
| tree | a19af8a9417958a732452c2cb31a2075f5e9ab97 /discord/client.py | |
| parent | [commands] Allow relative paths when handling extensions (diff) | |
| download | discord.py-427e387a2f487cf27d4a7ed5b49cc4c4bcae58ed.tar.xz discord.py-427e387a2f487cf27d4a7ed5b49cc4c4bcae58ed.zip | |
Deprecate non-bot methods
Diffstat (limited to 'discord/client.py')
| -rw-r--r-- | discord/client.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/discord/client.py b/discord/client.py index 22c25db7..85035535 100644 --- a/discord/client.py +++ b/discord/client.py @@ -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. |