Browse Source

[docs] remove mentions of bot only usability

pull/6855/head
Sebastian Law 4 years ago
committed by GitHub
parent
commit
b82a0dc6fd
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      discord/abc.py
  2. 9
      discord/channel.py
  3. 7
      discord/client.py

2
discord/abc.py

@ -1157,8 +1157,6 @@ class Messageable(Protocol):
Retrieves a single :class:`~discord.Message` from the destination.
This can only be used by bot accounts.
Parameters
------------
id: :class:`int`

9
discord/channel.py

@ -269,8 +269,6 @@ class TextChannel(discord.abc.Messageable, discord.abc.GuildChannel, Hashable):
You must have the :attr:`~Permissions.manage_messages` permission to
use this.
Usable only by bot accounts.
Parameters
-----------
messages: Iterable[:class:`abc.Snowflake`]
@ -281,8 +279,7 @@ class TextChannel(discord.abc.Messageable, discord.abc.GuildChannel, Hashable):
ClientException
The number of messages to delete was more than 100.
Forbidden
You do not have proper permissions to delete the messages or
you're not using a bot account.
You do not have proper permissions to delete the messages.
NotFound
If single delete, then the message was already deleted.
HTTPException
@ -313,8 +310,8 @@ class TextChannel(discord.abc.Messageable, discord.abc.GuildChannel, Hashable):
without discrimination.
You must have the :attr:`~Permissions.manage_messages` permission to
delete messages even if they are your own (unless you are a user
account). The :attr:`~Permissions.read_message_history` permission is
delete messages even if they are your own.
The :attr:`~Permissions.read_message_history` permission is
also needed to retrieve message history.
Examples

7
discord/client.py

@ -1255,10 +1255,9 @@ class Client:
async def fetch_user(self, user_id):
"""|coro|
Retrieves a :class:`~discord.User` based on their ID. This can only
be used by bot accounts. You do not have to share any guilds
with the user to get this information, however many operations
do require that you do.
Retrieves a :class:`~discord.User` based on their ID.
You do not have to share any guilds with the user to get this information,
however many operations do require that you do.
.. note::

Loading…
Cancel
Save