diff options
| author | 2021-01-25 19:32:25 +0400 | |
|---|---|---|
| committer | 2021-01-25 19:32:25 +0400 | |
| commit | 3e338ca62e20f73f4563e194d5aab031b0df96fe (patch) | |
| tree | 9901a71ecbf1272463c8e774e9e3b6182bc61197 | |
| parent | Do `is_helper_viewable` check before fetching message (diff) | |
Update `is_helper_viewable` check
| -rw-r--r-- | bot/exts/fun/duck_pond.py | 4 | 
1 files 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.""" | 
