|
|
@ -86,3 +86,19 @@ class User: |
|
|
|
"""Returns a string that allows you to mention the given user.""" |
|
|
|
return '<@{0.id}>'.format(self) |
|
|
|
|
|
|
|
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) |
|
|
|
|
|
|
|