Forced keyword argument for allow/deny in edit_channel_permissions
This commit is contained in:
parent
80b32e769e
commit
a91dad53a8
@ -1718,7 +1718,7 @@ class Client:
|
|||||||
return role
|
return role
|
||||||
|
|
||||||
@asyncio.coroutine
|
@asyncio.coroutine
|
||||||
def edit_channel_permissions(self, channel, target, allow=None, deny=None):
|
def edit_channel_permissions(self, channel, target, *, allow=None, deny=None):
|
||||||
"""|coro|
|
"""|coro|
|
||||||
|
|
||||||
Sets the channel specific permission overwrites for a target in the
|
Sets the channel specific permission overwrites for a target in the
|
||||||
@ -1738,7 +1738,7 @@ class Client:
|
|||||||
deny = discord.Permissions.none()
|
deny = discord.Permissions.none()
|
||||||
allow.can_mention_everyone = True
|
allow.can_mention_everyone = True
|
||||||
deny.can_manage_messages = True
|
deny.can_manage_messages = True
|
||||||
yield from client.set_channel_permissions(message.channel, message.author, allow, deny)
|
yield from client.set_channel_permissions(message.channel, message.author, allow=allow, deny=deny)
|
||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
-----------
|
-----------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user