Drop support for Python 3.4 and make minimum version 3.5.2.

This commit is contained in:
Rapptz
2018-06-10 18:09:14 -04:00
parent 7eb918b19e
commit f25091efe1
35 changed files with 626 additions and 1069 deletions

View File

@ -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)