diff options
| author | Rapptz <[email protected]> | 2021-04-11 22:21:36 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2021-04-11 22:21:36 -0400 |
| commit | 1209585de5ea43aff3bb601a830ede09713c62b0 (patch) | |
| tree | e9b4deb6a25e858e3d6b3258d8c4edd52e7f70a6 /discord/user.py | |
| parent | Remove comment that doesn't apply anymore (diff) | |
| download | discord.py-1209585de5ea43aff3bb601a830ede09713c62b0.tar.xz discord.py-1209585de5ea43aff3bb601a830ede09713c62b0.zip | |
Remove User.permissions_in
This seemed to only cause confusion.
Diffstat (limited to 'discord/user.py')
| -rw-r--r-- | discord/user.py | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/discord/user.py b/discord/user.py index d5541112..9f55b4ac 100644 --- a/discord/user.py +++ b/discord/user.py @@ -178,22 +178,6 @@ class BaseUser(_BaseUser): """:class:`str`: Returns a string that allows you to mention the given user.""" return f'<@{self.id}>' - def permissions_in(self, channel): - """An alias for :meth:`abc.GuildChannel.permissions_for`. - - Basically equivalent to: - - .. code-block:: python3 - - channel.permissions_for(self) - - Parameters - ----------- - channel: :class:`abc.GuildChannel` - The channel to check your permissions for. - """ - return channel.permissions_for(self) - @property def created_at(self): """:class:`datetime.datetime`: Returns the user's creation time in UTC. |