diff options
| author | Rapptz <[email protected]> | 2015-12-17 01:29:20 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2015-12-17 01:29:20 -0500 |
| commit | 5f4e13df9605d1ba8dbc17cdcfbedbbec8bccb24 (patch) | |
| tree | ea0d3b8ae5303ae489b3da7892f83955a705879d | |
| parent | Most data classes now support hashing. (diff) | |
| download | discord.py-5f4e13df9605d1ba8dbc17cdcfbedbbec8bccb24.tar.xz discord.py-5f4e13df9605d1ba8dbc17cdcfbedbbec8bccb24.zip | |
Fix Channel.permissions_for attribute error.
| -rw-r--r-- | discord/channel.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/discord/channel.py b/discord/channel.py index 5f53b837..b342d9e7 100644 --- a/discord/channel.py +++ b/discord/channel.py @@ -164,7 +164,7 @@ class Channel(Hashable): if member.id == self.server.owner.id: return Permissions.all() - default = member.roles[0] + default = self.server.default_role base = deepcopy(default.permissions) # Apply server roles that the member has. @@ -193,7 +193,7 @@ class Channel(Hashable): tmp = Permissions.all_channel() base.value |= tmp.value - if self.is_default_channel(): + if self.is_default: base.can_read_messages = True return base |