Browse Source

Add clarification for purge_from and delete_messages

Endpoint not usable by non-bot accounts
pull/209/head
Twentysix 9 years ago
parent
commit
132873d159
  1. 10
      discord/client.py

10
discord/client.py

@ -992,6 +992,8 @@ class Client:
channel is not consistent throughout the entire sequence, then an channel is not consistent throughout the entire sequence, then an
:exc:`HTTPException` will be raised. :exc:`HTTPException` will be raised.
Usable only by bot accounts.
Parameters Parameters
----------- -----------
messages : iterable of :class:`Message` messages : iterable of :class:`Message`
@ -1002,7 +1004,8 @@ class Client:
ClientException ClientException
The number of messages to delete is less than 2 or more than 100. The number of messages to delete is less than 2 or more than 100.
Forbidden 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 HTTPException
Deleting the messages failed. Deleting the messages failed.
""" """
@ -1034,6 +1037,8 @@ class Client:
your own. The Read Message History permission is also needed to retrieve your own. The Read Message History permission is also needed to retrieve
message history. message history.
Usable only by bot accounts.
Parameters Parameters
----------- -----------
channel : :class:`Channel` channel : :class:`Channel`
@ -1052,7 +1057,8 @@ class Client:
Raises Raises
------- -------
Forbidden 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 HTTPException
Purging the messages failed. Purging the messages failed.

Loading…
Cancel
Save