Browse Source

Make permissions_synced actually return False

The code before this returned None when there is no category.
pull/2327/head
apple502j 6 years ago
committed by Danny
parent
commit
7d7eabb974
  1. 2
      discord/abc.py

2
discord/abc.py

@ -396,7 +396,7 @@ class GuildChannel:
.. versionadded:: 1.3
"""
category = self.guild.get_channel(self.category_id)
return 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