mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-05-12 08:49:48 +00:00
Fix comparison for overwrites when checking if a channel is synced
This commit is contained in:
parent
b8c4ce6b86
commit
e9a4429c50
@ -440,7 +440,7 @@ class GuildChannel:
|
|||||||
.. versionadded:: 1.3
|
.. versionadded:: 1.3
|
||||||
"""
|
"""
|
||||||
category = self.guild.get_channel(self.category_id)
|
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):
|
def permissions_for(self, member):
|
||||||
"""Handles permission resolution for the current :class:`~discord.Member`.
|
"""Handles permission resolution for the current :class:`~discord.Member`.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user