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

@ -203,8 +203,7 @@ class Emoji(Hashable):
""":class:`Guild`: The guild this emoji belongs to."""
return self._state._get_guild(self.guild_id)
@asyncio.coroutine
def delete(self, *, reason=None):
async def delete(self, *, reason=None):
"""|coro|
Deletes the custom emoji.
@ -227,10 +226,9 @@ class Emoji(Hashable):
An error occurred deleting the emoji.
"""
yield from self._state.http.delete_custom_emoji(self.guild.id, self.id, reason=reason)
await self._state.http.delete_custom_emoji(self.guild.id, self.id, reason=reason)
@asyncio.coroutine
def edit(self, *, name, reason=None):
async def edit(self, *, name, reason=None):
"""|coro|
Edits the custom emoji.
@ -255,4 +253,4 @@ class Emoji(Hashable):
An error occurred editing the emoji.
"""
yield from self._state.http.edit_custom_emoji(self.guild.id, self.id, name=name, reason=reason)
await self._state.http.edit_custom_emoji(self.guild.id, self.id, name=name, reason=reason)