From 0321558decb4669a97eb9b69b1f9dbe12b9e2f32 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Wed, 15 Mar 2017 23:13:28 -0400 Subject: [PATCH] Handle case when guild owner somehow doesn't exist in permissions_for --- discord/abc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/discord/abc.py b/discord/abc.py index d0ddd42dd..0ad5b5a84 100644 --- a/discord/abc.py +++ b/discord/abc.py @@ -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