diff options
| author | Rapptz <[email protected]> | 2016-01-21 23:00:51 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2016-01-21 23:00:51 -0500 |
| commit | 86e9b62303cd3588c817de67cd2dd92d33811434 (patch) | |
| tree | ed2cf7bcb54ce20e5102554058dda225cf52bb1a | |
| parent | Update the unavailable guild's data when it becomes available. (diff) | |
| download | discord.py-86e9b62303cd3588c817de67cd2dd92d33811434.tar.xz discord.py-86e9b62303cd3588c817de67cd2dd92d33811434.zip | |
Move Member.permissions_in to User.permissions_in.
| -rw-r--r-- | discord/member.py | 16 | ||||
| -rw-r--r-- | discord/user.py | 16 |
2 files changed, 16 insertions, 16 deletions
diff --git a/discord/member.py b/discord/member.py index f5cd2038..3c95a5c4 100644 --- a/discord/member.py +++ b/discord/member.py @@ -103,19 +103,3 @@ class Member(User): # we switched channels if self.voice_channel is not None: self.voice_channel.voice_members.append(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) diff --git a/discord/user.py b/discord/user.py index 1e6eecae..b10d864b 100644 --- a/discord/user.py +++ b/discord/user.py @@ -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) + |