Skip to content

Commit

Permalink
Changed infraction message to be more like the ban message
Browse files Browse the repository at this point in the history
  • Loading branch information
janssensjelle committed Jan 25, 2025
1 parent ece81ec commit 65b3fc8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cmds/core/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ async def kick(self, ctx: ApplicationContext, user: Member, reason: str, evidenc
)

await ctx.guild.kick(user=member, reason=reason)
infraction_reason = f"{ctx.user.name} was kicked on {datetime.now().strftime('%Y-%m-%d %H:%M:%S')} for {reason} - Evidence: {evidence}"
infraction_reason = f"Previously kicked on {datetime.now().strftime('%Y-%m-%d %H:%M:%S')} for {reason} - Evidence: {evidence}"
await add_infraction(ctx.guild, member, 0, infraction_reason, ctx.user)
return await ctx.respond(f"{member.name} got the boot!")

Expand Down
2 changes: 1 addition & 1 deletion tests/src/cmds/core/test_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ async def test_kick_success(self, ctx, guild, bot, session):

reason = "Violation of rules"
add_infraction_mock.assert_called_once_with(
ctx.guild, user_to_kick, 0, f"{ctx.user.name} was kicked on {datetime.now().strftime('%Y-%m-%d %H:%M:%S')} for {reason} - Evidence: None", ctx.user
ctx.guild, user_to_kick, 0, f"Previously kicked on {datetime.now().strftime('%Y-%m-%d %H:%M:%S')} for {reason} - Evidence: None", ctx.user
)

# Assertions
Expand Down

0 comments on commit 65b3fc8

Please sign in to comment.