deprecate User.relationships

This commit is contained in:
Nadir Chowdhury 2021-03-28 23:39:15 +01:00 committed by GitHub
parent 31ee3fafc1
commit 4d4c19f9b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.