diff options
| author | Rapptz <[email protected]> | 2017-02-17 22:10:12 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-02-17 22:10:12 -0500 |
| commit | 54f297c24facc603c6f0de04e166083a6c418acd (patch) | |
| tree | ae4c86818369f98862ec0e8bb50025187463f43a | |
| parent | Fix Guild.bans to return a BanEntry object. (diff) | |
| download | discord.py-54f297c24facc603c6f0de04e166083a6c418acd.tar.xz discord.py-54f297c24facc603c6f0de04e166083a6c418acd.zip | |
Fix NameError in GuildChannel.overwrites_for
| -rw-r--r-- | discord/abc.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/discord/abc.py b/discord/abc.py index 0b5d9729..321af323 100644 --- a/discord/abc.py +++ b/discord/abc.py @@ -206,7 +206,7 @@ class GuildChannel: Parameters ----------- obj - The :class:`Role` or :class:`Member` or :class:`Object` denoting + The :class:`Role` or :class:`abc.User` denoting whose overwrite to get. Returns @@ -215,7 +215,7 @@ class GuildChannel: The permission overwrites for this object. """ - if isinstance(obj, Member): + if isinstance(obj, User): predicate = lambda p: p.type == 'member' elif isinstance(obj, Role): predicate = lambda p: p.type == 'role' |