Browse Source

Fix comparison for overwrites when checking if a channel is synced

pull/5810/head
Dan Hess 5 years ago
committed by GitHub
parent
commit
a1a4a4fd7f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      discord/abc.py

2
discord/abc.py

@ -440,7 +440,7 @@ class GuildChannel:
.. versionadded:: 1.3
"""
category = self.guild.get_channel(self.category_id)
return bool(category and category._overwrites == self._overwrites)
return bool(category and category.overwrites == self.overwrites)
def permissions_for(self, member):
"""Handles permission resolution for the current :class:`~discord.Member`.

Loading…
Cancel
Save