diff options
| author | Rapptz <[email protected]> | 2016-01-22 01:16:36 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2016-01-22 01:16:36 -0500 |
| commit | 2d413756b0869bd786477df30fc316d7e32b5653 (patch) | |
| tree | 9bb9a824eb90d035134dc3000f6246453ded801a | |
| parent | Move Member.permissions_in to User.permissions_in. (diff) | |
| download | discord.py-2d413756b0869bd786477df30fc316d7e32b5653.tar.xz discord.py-2d413756b0869bd786477df30fc316d7e32b5653.zip | |
Fix PrivateChannel.permissions_for not having self parameter.
| -rw-r--r-- | discord/channel.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/channel.py b/discord/channel.py index c35b0c1e..aafadd66 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`. |