aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2017-03-04 20:42:21 -0500
committerRapptz <[email protected]>2017-03-04 20:42:21 -0500
commitaa411012370b474623a26c5c4bbb1101de7ce01c (patch)
treec9327b27eceadcd55ea840f796c39c31c9c3a4ed
parent[commands] Add Context.me property. (diff)
downloaddiscord.py-aa411012370b474623a26c5c4bbb1101de7ce01c.tar.xz
discord.py-aa411012370b474623a26c5c4bbb1101de7ce01c.zip
Remove Client.accept_invite
-rw-r--r--discord/client.py27
-rw-r--r--discord/http.py3
2 files changed, 0 insertions, 30 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|
diff --git a/discord/http.py b/discord/http.py
index 3b80b128..699b2d4f 100644
--- a/discord/http.py
+++ b/discord/http.py
@@ -581,9 +581,6 @@ class HTTPClient:
def invites_from_channel(self, channel_id):
return self.request(Route('GET', '/channels/{channel_id}/invites', channel_id=channel_id))
- def accept_invite(self, invite_id):
- return self.request(Route('POST', '/invite/{invite_id}', invite_id=invite_id))
-
def delete_invite(self, invite_id):
return self.request(Route('DELETE', '/invite/{invite_id}', invite_id=invite_id))