diff options
| author | Rapptz <[email protected]> | 2018-06-10 18:09:14 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2018-06-10 18:10:00 -0400 |
| commit | f25091efe1281aebe70189c61f9cac405b21a72f (patch) | |
| tree | d0d13dad1a89de9f45845a36ea475098b7a0b494 /discord/invite.py | |
| parent | Add Message.jump_to_url (diff) | |
| download | discord.py-f25091efe1281aebe70189c61f9cac405b21a72f.tar.xz discord.py-f25091efe1281aebe70189c61f9cac405b21a72f.zip | |
Drop support for Python 3.4 and make minimum version 3.5.2.
Diffstat (limited to 'discord/invite.py')
| -rw-r--r-- | discord/invite.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/discord/invite.py b/discord/invite.py index 4acbf279..1cdabfdf 100644 --- a/discord/invite.py +++ b/discord/invite.py @@ -134,8 +134,7 @@ class Invite(Hashable): """A property that retrieves the invite URL.""" return 'http://discord.gg/' + self.code - @asyncio.coroutine - def delete(self, *, reason=None): + async def delete(self, *, reason=None): """|coro| Revokes the instant invite. @@ -157,4 +156,4 @@ class Invite(Hashable): Revoking the invite failed. """ - yield from self._state.http.delete_invite(self.code, reason=reason) + await self._state.http.delete_invite(self.code, reason=reason) |