mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
Handle case when guild owner somehow doesn't exist in permissions_for
This commit is contained in:
1 parent
51b0baeb9d
commit
0321558dec
1 file changed
+2
-1
+2
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user