diff --git a/techsupport_bot/commands/protect.py b/techsupport_bot/commands/protect.py index f94aa0b7e..b06c0c081 100644 --- a/techsupport_bot/commands/protect.py +++ b/techsupport_bot/commands/protect.py @@ -415,7 +415,7 @@ async def handle_warn(self, ctx, user: discord.Member, reason: str, bypass=False # Attempt DM for manually initiated, non-banning warns if ctx.command == self.bot.get_command("warn"): # Cancel warns in channels invisible to user - if user not in ctx.channel.members: + if not ctx.channel.permissions_for(user).view_channel: await auxiliary.send_deny_embed( message=f"{user} cannot see this warning.", channel=ctx.channel )