mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-07 12:18:59 +00:00
Forward keyword arguments in Member.ban
This commit is contained in:
parent
b8727fd463
commit
67912193ec
@ -335,12 +335,12 @@ class Member(discord.abc.Messageable):
|
|||||||
return self.guild._voice_state_for(self._user.id)
|
return self.guild._voice_state_for(self._user.id)
|
||||||
|
|
||||||
@asyncio.coroutine
|
@asyncio.coroutine
|
||||||
def ban(self):
|
def ban(self, **kwargs):
|
||||||
"""|coro|
|
"""|coro|
|
||||||
|
|
||||||
Bans this member. Equivalent to :meth:`Guild.ban`
|
Bans this member. Equivalent to :meth:`Guild.ban`
|
||||||
"""
|
"""
|
||||||
yield from self.guild.ban(self)
|
yield from self.guild.ban(self, **kwargs)
|
||||||
|
|
||||||
@asyncio.coroutine
|
@asyncio.coroutine
|
||||||
def unban(self):
|
def unban(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user