Browse Source

Use lower level Guild.owner_id for permission resolution.

pull/2266/head
Rapptz 6 years ago
parent
commit
562580a07f
  1. 3
      discord/abc.py
  2. 2
      discord/member.py

3
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

2
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()

Loading…
Cancel
Save