aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2015-12-05 16:58:41 -0500
committerRapptz <[email protected]>2015-12-06 03:10:18 -0500
commita91dad53a8822677363754a78614d6da8c017b6f (patch)
treeeec3f12a62290add52a92f8280caba7a0deb54a7
parentHandle GUILD_UPDATE (diff)
downloaddiscord.py-a91dad53a8822677363754a78614d6da8c017b6f.tar.xz
discord.py-a91dad53a8822677363754a78614d6da8c017b6f.zip
Forced keyword argument for allow/deny in edit_channel_permissions
-rw-r--r--discord/client.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/discord/client.py b/discord/client.py
index 15ff41a5..f502d980 100644
--- a/discord/client.py
+++ b/discord/client.py
@@ -1718,7 +1718,7 @@ class Client:
return role
@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|
Sets the channel specific permission overwrites for a target in the
@@ -1738,7 +1738,7 @@ class Client:
deny = discord.Permissions.none()
allow.can_mention_everyone = 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
-----------