From 562580a07f72fa773e9ee1094c71723320b97e24 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Wed, 10 Jul 2019 14:30:53 -0400 Subject: [PATCH] Use lower level Guild.owner_id for permission resolution. --- discord/abc.py | 3 +-- discord/member.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/discord/abc.py b/discord/abc.py index 73c12e53b..a9c7af383 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 ed6b3944c..af08b1369 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()