diff options
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) |