From 427e387a2f487cf27d4a7ed5b49cc4c4bcae58ed Mon Sep 17 00:00:00 2001 From: Nadir Chowdhury Date: Tue, 23 Feb 2021 08:36:37 +0000 Subject: Deprecate non-bot methods --- discord/client.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'discord/client.py') 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. -- cgit v1.2.3