From a632bdd871de9d292759e24f9256ebaa81b68658 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Tue, 31 Jan 2017 04:53:54 -0500 Subject: [PATCH] Fix Member.permissions_in passing in the wrong self parameter. --- discord/member.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/discord/member.py b/discord/member.py index b32869945..054328918 100644 --- a/discord/member.py +++ b/discord/member.py @@ -264,6 +264,22 @@ class Member(discord.abc.Messageable): return False + def permissions_in(self, channel): + """An alias for :meth:`Channel.permissions_for`. + + Basically equivalent to: + + .. code-block:: python + + channel.permissions_for(self) + + Parameters + ----------- + channel + The channel to check your permissions for. + """ + return channel.permissions_for(self) + @property def top_role(self): """Returns the member's highest role.