diff options
| -rw-r--r-- | discord/abc.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/discord/abc.py b/discord/abc.py index b888fd01..b150b025 100644 --- a/discord/abc.py +++ b/discord/abc.py @@ -386,6 +386,16 @@ class GuildChannel: """ return self.guild.get_channel(self.category_id) + @property + def permissions_synced(self): + """:class:`bool`: Whether or not the permissions for this channel are synced with the + category it belongs to. + + If there is no category then this is ``False``. + """ + category = self.guild.get_channel(self.category_id) + return category and category._overwrites == self._overwrites + def permissions_for(self, member): """Handles permission resolution for the current :class:`~discord.Member`. |