diff options
| author | Dan Hess <[email protected]> | 2020-09-09 18:49:05 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-09-09 19:49:05 -0400 |
| commit | a1a4a4fd7f826c3187d630c47597e888ccc8133e (patch) | |
| tree | 9fdf5bd75c89846791ef3b3b083d31e47eac24fb | |
| parent | [commands] Correct command removing during cog injecting (diff) | |
| download | discord.py-a1a4a4fd7f826c3187d630c47597e888ccc8133e.tar.xz discord.py-a1a4a4fd7f826c3187d630c47597e888ccc8133e.zip | |
Fix comparison for overwrites when checking if a channel is synced
| -rw-r--r-- | discord/abc.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/abc.py b/discord/abc.py index 698582e4..85bcd203 100644 --- a/discord/abc.py +++ b/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`. |