remove repr in ignore/unignore
This commit is contained in:
parent
8f7899f031
commit
1186f1b23e
1 changed files with 4 additions and 4 deletions
|
@ -362,12 +362,12 @@ class Notifications(Cog):
|
|||
if await ctx.bot.db.fetch_exists(
|
||||
"SELECT * FROM user_ignores WHERE user_id=? AND guild_id=? AND target=?", params
|
||||
):
|
||||
await ctx.send(f"Target `{repr(target)}` already ignored")
|
||||
await ctx.send(f"Target `{target}` already ignored")
|
||||
return
|
||||
|
||||
await ctx.bot.db.execute("INSERT INTO user_ignores VALUES(?, ?, ?)", params)
|
||||
await ctx.bot.db.commit()
|
||||
await ctx.send(f"Now ignoring `{repr(target)}`")
|
||||
await ctx.send(f"Now ignoring `{target}`")
|
||||
|
||||
@keyword.command()
|
||||
@guild_only()
|
||||
|
@ -382,12 +382,12 @@ class Notifications(Cog):
|
|||
if not await ctx.bot.db.fetch_exists(
|
||||
"SELECT * FROM user_ignores WHERE user_id=? AND guild_id=? AND target=?", params
|
||||
):
|
||||
await ctx.send(f"Target `{repr(target)}` is not currently being ignored")
|
||||
await ctx.send(f"Target `{target}` is not currently being ignored")
|
||||
return
|
||||
|
||||
await ctx.bot.db.execute("DELETE FROM user_ignores WHERE user_id=? AND guild_id=? AND target=?", params)
|
||||
await ctx.bot.db.commit()
|
||||
await ctx.send(f"No longer ignoring `{repr(target)}`")
|
||||
await ctx.send(f"No longer ignoring `{target}`")
|
||||
|
||||
@keyword.command()
|
||||
async def block(self, ctx, target: User):
|
||||
|
|
Loading…
Reference in a new issue