Disambiguate and normalize documentation for non-bot only methods
This commit is contained in:
parent
c7d3ebb400
commit
c7a1f5e6e9
@ -1228,7 +1228,11 @@ class Client:
|
|||||||
async def fetch_user_profile(self, user_id):
|
async def fetch_user_profile(self, user_id):
|
||||||
"""|coro|
|
"""|coro|
|
||||||
|
|
||||||
Gets an arbitrary user's profile. This can only be used by non-bot accounts.
|
Gets an arbitrary user's profile.
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
|
||||||
|
This can only be used by non-bot accounts.
|
||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
------------
|
------------
|
||||||
|
@ -331,7 +331,7 @@ class ClientUser(BaseUser):
|
|||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
This only applies to non-bot accounts.
|
This can only be used by non-bot accounts.
|
||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
-----------
|
-----------
|
||||||
@ -351,7 +351,7 @@ class ClientUser(BaseUser):
|
|||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
This only applies to non-bot accounts.
|
This can only be used by non-bot accounts.
|
||||||
"""
|
"""
|
||||||
return list(self._relationships.values())
|
return list(self._relationships.values())
|
||||||
|
|
||||||
@ -361,7 +361,7 @@ class ClientUser(BaseUser):
|
|||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
This only applies to non-bot accounts.
|
This can only be used by non-bot accounts.
|
||||||
"""
|
"""
|
||||||
return [r.user for r in self._relationships.values() if r.type is RelationshipType.friend]
|
return [r.user for r in self._relationships.values() if r.type is RelationshipType.friend]
|
||||||
|
|
||||||
@ -371,7 +371,7 @@ class ClientUser(BaseUser):
|
|||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
This only applies to non-bot accounts.
|
This can only be used by non-bot accounts.
|
||||||
"""
|
"""
|
||||||
return [r.user for r in self._relationships.values() if r.type is RelationshipType.blocked]
|
return [r.user for r in self._relationships.values() if r.type is RelationshipType.blocked]
|
||||||
|
|
||||||
@ -483,7 +483,7 @@ class ClientUser(BaseUser):
|
|||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
This only applies to non-bot accounts.
|
This can only be used by non-bot accounts.
|
||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
-----------
|
-----------
|
||||||
@ -521,7 +521,7 @@ class ClientUser(BaseUser):
|
|||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
This only applies to non-bot accounts.
|
This can only be used by non-bot accounts.
|
||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
-------
|
-------
|
||||||
@ -698,7 +698,7 @@ class User(BaseUser, discord.abc.Messageable):
|
|||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
This only applies to non-bot accounts.
|
This can only be used by non-bot accounts.
|
||||||
"""
|
"""
|
||||||
return self._state.user.get_relationship(self.id)
|
return self._state.user.get_relationship(self.id)
|
||||||
|
|
||||||
@ -709,7 +709,7 @@ class User(BaseUser, discord.abc.Messageable):
|
|||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
This only applies to non-bot accounts.
|
This can only be used by non-bot accounts.
|
||||||
|
|
||||||
Raises
|
Raises
|
||||||
-------
|
-------
|
||||||
@ -732,7 +732,7 @@ class User(BaseUser, discord.abc.Messageable):
|
|||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
This only applies to non-bot accounts.
|
This can only be used by non-bot accounts.
|
||||||
"""
|
"""
|
||||||
r = self.relationship
|
r = self.relationship
|
||||||
if r is None:
|
if r is None:
|
||||||
@ -744,7 +744,7 @@ class User(BaseUser, discord.abc.Messageable):
|
|||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
This only applies to non-bot accounts.
|
This can only be used by non-bot accounts.
|
||||||
"""
|
"""
|
||||||
r = self.relationship
|
r = self.relationship
|
||||||
if r is None:
|
if r is None:
|
||||||
@ -758,7 +758,7 @@ class User(BaseUser, discord.abc.Messageable):
|
|||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
This only applies to non-bot accounts.
|
This can only be used by non-bot accounts.
|
||||||
|
|
||||||
Raises
|
Raises
|
||||||
-------
|
-------
|
||||||
@ -777,7 +777,7 @@ class User(BaseUser, discord.abc.Messageable):
|
|||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
This only applies to non-bot accounts.
|
This can only be used by non-bot accounts.
|
||||||
|
|
||||||
Raises
|
Raises
|
||||||
-------
|
-------
|
||||||
@ -795,7 +795,7 @@ class User(BaseUser, discord.abc.Messageable):
|
|||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
This only applies to non-bot accounts.
|
This can only be used by non-bot accounts.
|
||||||
|
|
||||||
Raises
|
Raises
|
||||||
-------
|
-------
|
||||||
@ -813,7 +813,7 @@ class User(BaseUser, discord.abc.Messageable):
|
|||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
This only applies to non-bot accounts.
|
This can only be used by non-bot accounts.
|
||||||
|
|
||||||
Raises
|
Raises
|
||||||
-------
|
-------
|
||||||
@ -831,7 +831,7 @@ class User(BaseUser, discord.abc.Messageable):
|
|||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
This only applies to non-bot accounts.
|
This can only be used by non-bot accounts.
|
||||||
|
|
||||||
Raises
|
Raises
|
||||||
-------
|
-------
|
||||||
|
@ -6530,7 +6530,7 @@ msgstr "該当すれば :class:`Relationship` が返ります。"
|
|||||||
#: discord.User.mutual_friends:7 discord.User.profile:7
|
#: discord.User.mutual_friends:7 discord.User.profile:7
|
||||||
#: discord.User.relationship:5 discord.User.remove_friend:7
|
#: discord.User.relationship:5 discord.User.remove_friend:7
|
||||||
#: discord.User.send_friend_request:7 discord.User.unblock:7 of
|
#: discord.User.send_friend_request:7 discord.User.unblock:7 of
|
||||||
msgid "This only applies to non-bot accounts."
|
msgid "This can only be used by non-bot accounts."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: discord.ClientUser.get_relationship:7 of
|
#: discord.ClientUser.get_relationship:7 of
|
||||||
|
Loading…
x
Reference in New Issue
Block a user