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
|
# The operation first takes into consideration the denied
|
||||||
# and then the allowed.
|
# 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()
|
return Permissions.all()
|
||||||
|
|
||||||
default = self.guild.default_role
|
default = self.guild.default_role
|
||||||
|
Loading…
x
Reference in New Issue
Block a user