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 | |
| 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.
| -rw-r--r-- | discord/abc.py | 3 | ||||
| -rw-r--r-- | discord/member.py | 2 |
2 files changed, 2 insertions, 3 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 diff --git a/discord/member.py b/discord/member.py index ed6b3944..af08b136 100644 --- a/discord/member.py +++ b/discord/member.py @@ -432,7 +432,7 @@ class Member(discord.abc.Messageable, _BaseUser): administrator implication. """ - if self.guild.owner == self: + if self.guild.owner_id == self.id: return Permissions.all() base = Permissions.none() |