mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-22 08:44:10 +00:00
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."""
|
||||
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|
|
||||
|
Loading…
x
Reference in New Issue
Block a user