mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-20 07:54:36 +00:00
Handle case when guild owner somehow doesn't exist in permissions_for
This commit is contained in:
parent
51b0baeb9d
commit
0321558dec
@ -296,7 +296,8 @@ class GuildChannel:
|
||||
# The operation first takes into consideration the denied
|
||||
# and then the allowed.
|
||||
|
||||
if member.id == self.guild.owner.id:
|
||||
o = self.guild.owner
|
||||
if o is not None and member.id == o.id:
|
||||
return Permissions.all()
|
||||
|
||||
default = self.guild.default_role
|
||||
|
Loading…
x
Reference in New Issue
Block a user