From 3e338ca62e20f73f4563e194d5aab031b0df96fe Mon Sep 17 00:00:00 2001 From: Anand Krishna Date: Mon, 25 Jan 2021 19:32:25 +0400 Subject: Update `is_helper_viewable` check --- bot/exts/fun/duck_pond.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot/exts/fun/duck_pond.py b/bot/exts/fun/duck_pond.py index 3eed25781..ee440dec2 100644 --- a/bot/exts/fun/duck_pond.py +++ b/bot/exts/fun/duck_pond.py @@ -50,10 +50,10 @@ class DuckPond(Cog): guild = channel.guild helper_role = guild.get_role(constants.Roles.helpers) # check channel overwrites for both the Helper role and @everyone and - # return True for channels that they have explicit permissions to view. + # return True for channels that they have permissions to view. helper_overwrites = channel.overwrites_for(helper_role) default_overwrites = channel.overwrites_for(guild.default_role) - return default_overwrites.view_channel or helper_overwrites.view_channel + return default_overwrites.view_channel is None or helper_overwrites.view_channel is True async def has_green_checkmark(self, message: Message) -> bool: """Check if the message has a green checkmark reaction.""" -- cgit v1.2.3