aboutsummaryrefslogtreecommitdiff
path: root/discord/client.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2016-01-03 21:44:54 -0500
committerRapptz <[email protected]>2016-01-03 21:45:28 -0500
commit5a1d7a2d942c75a2f374b4b0add6ad50fdd227d7 (patch)
tree3cd63bd9d6ac6cd4d1ead371a32166d54533bc28 /discord/client.py
parentDocument more breaking changes in migrating file. (diff)
downloaddiscord.py-5a1d7a2d942c75a2f374b4b0add6ad50fdd227d7.tar.xz
discord.py-5a1d7a2d942c75a2f374b4b0add6ad50fdd227d7.zip
Change permissions to remove the can_ prefix.
Diffstat (limited to 'discord/client.py')
-rw-r--r--discord/client.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/discord/client.py b/discord/client.py
index 8f319416..bbad5ee4 100644
--- a/discord/client.py
+++ b/discord/client.py
@@ -2200,8 +2200,8 @@ class Client:
allow = discord.Permissions.none()
deny = discord.Permissions.none()
- allow.can_mention_everyone = True
- deny.can_manage_messages = True
+ allow.mention_everyone = True
+ deny.manage_messages = True
yield from client.edit_channel_permissions(message.channel, message.author, allow=allow, deny=deny)
Parameters