mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-03 16:45:21 +00:00
Remove Invite.accept.
This commit is contained in:
@ -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|
|
||||||
|
Reference in New Issue
Block a user