From bfae26f33d1eb8d2152bb91202fdd826aaabee6d Mon Sep 17 00:00:00 2001 From: brandons209 Date: Wed, 3 Mar 2021 04:50:32 -0500 Subject: [PATCH] fix blocking for follower --- follower/follower.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/follower/follower.py b/follower/follower.py index 580009a..6a5c750 100644 --- a/follower/follower.py +++ b/follower/follower.py @@ -310,9 +310,14 @@ class Follower(commands.Cog): return async with self.config.user_from_id(ctx.author.id).blocked() as blocked: + if user.id in blocked: + await ctx.send(error(f"You already blocked {user.mention}!")) + return blocked.append(user.id) await self.unfollow(user.id, ctx.author.id) + # also unfollow yourself from them + await self.unfollow(ctx.author.id, user.id) await ctx.tick()