mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-20 16:00:29 +00:00
Make permissions_synced actually return False
The code before this returned None when there is no category.
This commit is contained in:
parent
2f7e875a76
commit
7d7eabb974
@ -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…
x
Reference in New Issue
Block a user