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:
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`.
|
||||
|
Loading…
x
Reference in New Issue
Block a user