From 4d4c19f9b5b5d7c463be33cbe44432050c5a0510 Mon Sep 17 00:00:00 2001 From: Nadir Chowdhury Date: Sun, 28 Mar 2021 23:39:15 +0100 Subject: [PATCH] deprecate User.relationships --- discord/user.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/discord/user.py b/discord/user.py index ff60fb71c..3cddf99cc 100644 --- a/discord/user.py +++ b/discord/user.py @@ -768,6 +768,8 @@ class User(BaseUser, discord.abc.Messageable): def relationship(self): """Optional[:class:`Relationship`]: Returns the :class:`Relationship` with this user if applicable, ``None`` otherwise. + .. deprecated:: 1.7 + .. note:: This can only be used by non-bot accounts.