Fix Member.permissions_in passing in the wrong self parameter.
This commit is contained in:
parent
5422655a86
commit
a632bdd871
@ -264,6 +264,22 @@ class Member(discord.abc.Messageable):
|
|||||||
|
|
||||||
return False
|
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
|
@property
|
||||||
def top_role(self):
|
def top_role(self):
|
||||||
"""Returns the member's highest role.
|
"""Returns the member's highest role.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user