1
0
mirror of https://github.com/Rapptz/discord.py.git synced 2025-05-15 18:29:52 +00:00

Fix PrivateChannel.permissions_for not having self parameter.

This commit is contained in:
Rapptz 2016-01-22 01:16:36 -05:00
parent 86e9b62303
commit 2d413756b0

@ -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`.