diff options
| author | Rapptz <[email protected]> | 2019-07-10 14:30:53 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2019-07-10 14:30:53 -0400 |
| commit | 562580a07f72fa773e9ee1094c71723320b97e24 (patch) | |
| tree | 72c17df70c7da857ac5c5969bc74829f78e2dda8 /discord/abc.py | |
| parent | Fix NameError in member upgrade code (diff) | |
| download | discord.py-562580a07f72fa773e9ee1094c71723320b97e24.tar.xz discord.py-562580a07f72fa773e9ee1094c71723320b97e24.zip | |
Use lower level Guild.owner_id for permission resolution.
Diffstat (limited to 'discord/abc.py')
| -rw-r--r-- | discord/abc.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/discord/abc.py b/discord/abc.py index 73c12e53..a9c7af38 100644 --- a/discord/abc.py +++ b/discord/abc.py @@ -418,8 +418,7 @@ class GuildChannel: # The operation first takes into consideration the denied # and then the allowed. - o = self.guild.owner - if o is not None and member.id == o.id: + if self.guild.owner_id == member.id: return Permissions.all() default = self.guild.default_role |