aboutsummaryrefslogtreecommitdiff
path: root/discord/client.py
diff options
context:
space:
mode:
Diffstat (limited to 'discord/client.py')
-rw-r--r--discord/client.py27
1 files changed, 0 insertions, 27 deletions
diff --git a/discord/client.py b/discord/client.py
index c3078267..6906777e 100644
--- a/discord/client.py
+++ b/discord/client.py
@@ -770,33 +770,6 @@ class Client:
return Invite.from_incomplete(state=self.connection, data=data)
@asyncio.coroutine
- def accept_invite(self, invite):
- """|coro|
-
- Accepts an :class:`Invite`, URL or ID to an invite.
-
- The URL must be a discord.gg URL. e.g. "http://discord.gg/codehere".
- An ID for the invite is just the "codehere" portion of the invite URL.
-
- Parameters
- -----------
- invite
- The :class:`Invite` or URL to an invite to accept.
-
- Raises
- -------
- HTTPException
- 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)
- yield from self.http.accept_invite(invite_id)
-
- @asyncio.coroutine
def delete_invite(self, invite):
"""|coro|