From 2d413756b0869bd786477df30fc316d7e32b5653 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Fri, 22 Jan 2016 01:16:36 -0500 Subject: [PATCH] Fix PrivateChannel.permissions_for not having self parameter. --- discord/channel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/channel.py b/discord/channel.py index c35b0c1eb..aafadd665 100644 --- a/discord/channel.py +++ b/discord/channel.py @@ -235,7 +235,7 @@ class PrivateChannel(Hashable): def __str__(self): return 'Direct Message with {0.name}'.format(self.user) - def permissions_for(user): + def permissions_for(self, user): """Handles permission resolution for a :class:`User`. This function is there for compatibility with :class:`Channel`.