diff options
| author | Twentysix <[email protected]> | 2016-05-11 17:13:34 +0200 |
|---|---|---|
| committer | Twentysix <[email protected]> | 2016-05-11 17:13:34 +0200 |
| commit | 132873d1591452b71b006417522778a0b96b4fea (patch) | |
| tree | 00d962a82d9b70d34a2c02d5c6c8eb8d4dcff721 | |
| parent | Change second run_until_complete to not be empty. (diff) | |
| download | discord.py-132873d1591452b71b006417522778a0b96b4fea.tar.xz discord.py-132873d1591452b71b006417522778a0b96b4fea.zip | |
Add clarification for purge_from and delete_messages
Endpoint not usable by non-bot accounts
| -rw-r--r-- | discord/client.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/discord/client.py b/discord/client.py index ebf9bfe6..54e5ca85 100644 --- a/discord/client.py +++ b/discord/client.py @@ -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. |