Remove Invite.accept.
This commit is contained in:
parent
2f97678a79
commit
6c67910fa9
@ -131,25 +131,6 @@ class Invite(Hashable):
|
|||||||
"""A property that retrieves the invite URL."""
|
"""A property that retrieves the invite URL."""
|
||||||
return 'http://discord.gg/' + self.code
|
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
|
@asyncio.coroutine
|
||||||
def delete(self, *, reason=None):
|
def delete(self, *, reason=None):
|
||||||
"""|coro|
|
"""|coro|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user