remove repr in ignore/unignore

This commit is contained in:
Infinidoge 2025-01-01 01:46:40 -05:00
parent 8f7899f031
commit 1186f1b23e
Signed by: Infinidoge
SSH key fingerprint: SHA256:GT2StvPQMMfFHyiiFJymQxfTG/z6EWLJ6NWItf5K5sA

View file

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