mirror of
https://github.com/brandons209/Red-bot-Cogs.git
synced 2024-04-26 16:42:11 +12:00
fix blocking for follower
This commit is contained in:
parent
812cd50def
commit
bfae26f33d
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in a new issue