mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-05-13 01:09:50 +00:00
Add clarification for purge_from and delete_messages
Endpoint not usable by non-bot accounts
This commit is contained in:
parent
b8eab5f656
commit
132873d159
@ -992,6 +992,8 @@ class Client:
|
||||
channel is not consistent throughout the entire sequence, then an
|
||||
:exc:`HTTPException` will be raised.
|
||||
|
||||
Usable only by bot accounts.
|
||||
|
||||
Parameters
|
||||
-----------
|
||||
messages : iterable of :class:`Message`
|
||||
@ -1002,7 +1004,8 @@ class Client:
|
||||
ClientException
|
||||
The number of messages to delete is less than 2 or more than 100.
|
||||
Forbidden
|
||||
You do not have proper permissions to delete the messages.
|
||||
You do not have proper permissions to delete the messages or
|
||||
you're not using a bot account.
|
||||
HTTPException
|
||||
Deleting the messages failed.
|
||||
"""
|
||||
@ -1034,6 +1037,8 @@ class Client:
|
||||
your own. The Read Message History permission is also needed to retrieve
|
||||
message history.
|
||||
|
||||
Usable only by bot accounts.
|
||||
|
||||
Parameters
|
||||
-----------
|
||||
channel : :class:`Channel`
|
||||
@ -1052,7 +1057,8 @@ class Client:
|
||||
Raises
|
||||
-------
|
||||
Forbidden
|
||||
You do not have proper permissions to do the actions required.
|
||||
You do not have proper permissions to do the actions required or
|
||||
you're not using a bot account.
|
||||
HTTPException
|
||||
Purging the messages failed.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user