Browse Source

Forward keyword arguments in Member.ban

pull/1278/head
Rapptz 8 years ago
parent
commit
67912193ec
  1. 4
      discord/member.py

4
discord/member.py

@ -335,12 +335,12 @@ class Member(discord.abc.Messageable):
return self.guild._voice_state_for(self._user.id)
@asyncio.coroutine
def ban(self):
def ban(self, **kwargs):
"""|coro|
Bans this member. Equivalent to :meth:`Guild.ban`
"""
yield from self.guild.ban(self)
yield from self.guild.ban(self, **kwargs)
@asyncio.coroutine
def unban(self):

Loading…
Cancel
Save