Remove Invite.accept.

This commit is contained in:
Rapptz 2017-07-08 21:33:04 -04:00
parent 2f97678a79
commit 6c67910fa9

View File

@ -131,25 +131,6 @@ class Invite(Hashable):
"""A property that retrieves the invite URL."""
return 'http://discord.gg/' + self.code
@asyncio.coroutine
def accept(self):
"""|coro|
Accepts the instant invite and adds you to the guild
the invite is in.
Raises
-------
HTTPException
Accepting the invite failed.
NotFound
The invite is invalid or expired.
Forbidden
You are a bot user and cannot use this endpoint.
"""
yield from self._state.http.accept_invite(self.code)
@asyncio.coroutine
def delete(self, *, reason=None):
"""|coro|