diff options
| author | Dan Hess <[email protected]> | 2020-09-09 18:49:05 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2020-09-24 02:17:55 -0400 |
| commit | e9a4429c50375cdf34bd8dda7ab34d6d08e22133 (patch) | |
| tree | 671e3a05ab77f39e50f9a99f547fbb69bc2bc566 | |
| parent | [commands] Correct command removing during cog injecting (diff) | |
| download | discord.py-e9a4429c50375cdf34bd8dda7ab34d6d08e22133.tar.xz discord.py-e9a4429c50375cdf34bd8dda7ab34d6d08e22133.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 7704a5f8..a2ec977d 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`. |