Disambiguate and normalize documentation for non-bot only methods

This commit is contained in:
Tyler 2019-08-12 07:50:31 +09:00 committed by Danny
parent c7d3ebb400
commit c7a1f5e6e9
3 changed files with 21 additions and 17 deletions

View File

@ -1228,7 +1228,11 @@ class Client:
async def fetch_user_profile(self, user_id):
"""|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
------------

View File

@ -331,7 +331,7 @@ class ClientUser(BaseUser):
.. note::
This only applies to non-bot accounts.
This can only be used by non-bot accounts.
Parameters
-----------
@ -351,7 +351,7 @@ class ClientUser(BaseUser):
.. note::
This only applies to non-bot accounts.
This can only be used by non-bot accounts.
"""
return list(self._relationships.values())
@ -361,7 +361,7 @@ class ClientUser(BaseUser):
.. 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]
@ -371,7 +371,7 @@ class ClientUser(BaseUser):
.. 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]
@ -483,7 +483,7 @@ class ClientUser(BaseUser):
.. note::
This only applies to non-bot accounts.
This can only be used by non-bot accounts.
Parameters
-----------
@ -521,7 +521,7 @@ class ClientUser(BaseUser):
.. note::
This only applies to non-bot accounts.
This can only be used by non-bot accounts.
Parameters
-------
@ -698,7 +698,7 @@ class User(BaseUser, discord.abc.Messageable):
.. 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)
@ -709,7 +709,7 @@ class User(BaseUser, discord.abc.Messageable):
.. note::
This only applies to non-bot accounts.
This can only be used by non-bot accounts.
Raises
-------
@ -732,7 +732,7 @@ class User(BaseUser, discord.abc.Messageable):
.. note::
This only applies to non-bot accounts.
This can only be used by non-bot accounts.
"""
r = self.relationship
if r is None:
@ -744,7 +744,7 @@ class User(BaseUser, discord.abc.Messageable):
.. note::
This only applies to non-bot accounts.
This can only be used by non-bot accounts.
"""
r = self.relationship
if r is None:
@ -758,7 +758,7 @@ class User(BaseUser, discord.abc.Messageable):
.. note::
This only applies to non-bot accounts.
This can only be used by non-bot accounts.
Raises
-------
@ -777,7 +777,7 @@ class User(BaseUser, discord.abc.Messageable):
.. note::
This only applies to non-bot accounts.
This can only be used by non-bot accounts.
Raises
-------
@ -795,7 +795,7 @@ class User(BaseUser, discord.abc.Messageable):
.. note::
This only applies to non-bot accounts.
This can only be used by non-bot accounts.
Raises
-------
@ -813,7 +813,7 @@ class User(BaseUser, discord.abc.Messageable):
.. note::
This only applies to non-bot accounts.
This can only be used by non-bot accounts.
Raises
-------
@ -831,7 +831,7 @@ class User(BaseUser, discord.abc.Messageable):
.. note::
This only applies to non-bot accounts.
This can only be used by non-bot accounts.
Raises
-------

View File

@ -6530,7 +6530,7 @@ msgstr "該当すれば :class:`Relationship` が返ります。"
#: discord.User.mutual_friends:7 discord.User.profile:7
#: discord.User.relationship:5 discord.User.remove_friend:7
#: 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 ""
#: discord.ClientUser.get_relationship:7 of