diff options
| author | Rapptz <[email protected]> | 2017-07-08 21:33:04 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-07-08 21:33:04 -0400 |
| commit | 6c67910fa9bc8663ee683d772209daeb4651f4ea (patch) | |
| tree | 2c307855f64afc8b3c20420094ac83b3e48f6423 | |
| parent | First pass at commands narrative documentation. (diff) | |
| download | discord.py-6c67910fa9bc8663ee683d772209daeb4651f4ea.tar.xz discord.py-6c67910fa9bc8663ee683d772209daeb4651f4ea.zip | |
Remove Invite.accept.
| -rw-r--r-- | discord/invite.py | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/discord/invite.py b/discord/invite.py index 3fa860c7..e40817a2 100644 --- a/discord/invite.py +++ b/discord/invite.py @@ -132,25 +132,6 @@ class Invite(Hashable): 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| |