fix blocking for follower

This commit is contained in:
brandons209 2021-03-03 04:50:32 -05:00
parent 812cd50def
commit bfae26f33d

View file

@ -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()