Skip to content

Commit 08ec83f

Browse files
make response ephemeral
1 parent 0ab4fa4 commit 08ec83f

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

cogs/strike.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -892,7 +892,6 @@ async def get_strikes( # type: ignore[misc]
892892
strike_member: discord.Member = await self.bot.get_member_from_str_id(
893893
str_user_id,
894894
)
895-
logger.debug("Found user: %s", strike_member)
896895
except ValueError as member_id_not_integer_error:
897896
await self.command_send_error(ctx, message=member_id_not_integer_error.args[0])
898897
return
@@ -912,8 +911,11 @@ async def get_strikes( # type: ignore[misc]
912911
logger.debug("No strikes found for user %s", strike_member)
913912

914913
await ctx.respond(
915-
f"User {strike_member.mention} has "
916-
f"{strike_obj.strikes if strike_obj else 0} strikes."
914+
content=(
915+
f"User {strike_member.mention} has "
916+
f"{strike_obj.strikes if strike_obj else 0} strikes."
917+
),
918+
ephemeral=True,
917919
)
918920

919921

0 commit comments

Comments
 (0)