aboutsummaryrefslogtreecommitdiff
path: root/discord/client.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2016-06-26 14:18:47 -0400
committerRapptz <[email protected]>2016-06-26 14:18:47 -0400
commitc34eb5f6dd1a6413249713278358e95f7591681a (patch)
treefd74cfe94dfe5c3e773a69717a51f1f82bb220ae /discord/client.py
parent[commands] Fix error where consume rest would not work. (diff)
downloaddiscord.py-c34eb5f6dd1a6413249713278358e95f7591681a.tar.xz
discord.py-c34eb5f6dd1a6413249713278358e95f7591681a.zip
Document that bot users can't use Client.accept_invite
Diffstat (limited to 'discord/client.py')
-rw-r--r--discord/client.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/discord/client.py b/discord/client.py
index 2580fa12..ebea8ec4 100644
--- a/discord/client.py
+++ b/discord/client.py
@@ -2118,6 +2118,8 @@ class Client:
Accepting the invite failed.
NotFound
The invite is invalid or expired.
+ Forbidden
+ You are a bot user and cannot use this endpoint.
"""
invite_id = self._resolve_invite(invite)