aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--discord/abc.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/discord/abc.py b/discord/abc.py
index d0ddd42d..0ad5b5a8 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