mirror of
https://github.com/brandons209/Red-bot-Cogs.git
synced 2024-05-07 05:53:13 +12:00
fix blocking for follower
This commit is contained in:
parent
812cd50def
commit
bfae26f33d
|
@ -310,9 +310,14 @@ class Follower(commands.Cog):
|
||||||
return
|
return
|
||||||
|
|
||||||
async with self.config.user_from_id(ctx.author.id).blocked() as blocked:
|
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)
|
blocked.append(user.id)
|
||||||
|
|
||||||
await self.unfollow(user.id, ctx.author.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()
|
await ctx.tick()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue