Implement audit logs.

This commit is contained in:
Rapptz
2017-04-30 02:58:27 -04:00
parent 3f45db5c3b
commit c54a6a927d
9 changed files with 1294 additions and 14 deletions

View File

@@ -357,12 +357,12 @@ class Member(discord.abc.Messageable):
yield from self.guild.unban(self)
@asyncio.coroutine
def kick(self):
def kick(self, *, reason=None):
"""|coro|
Kicks this member. Equivalent to :meth:`Guild.kick`
"""
yield from self.guild.kick(self)
yield from self.guild.kick(self, reason=reason)
@asyncio.coroutine
def edit(self, **fields):