Skip to content

Commit

Permalink
Added : after for
Browse files Browse the repository at this point in the history
  • Loading branch information
janssensjelle committed Jan 25, 2025
1 parent 71d383f commit 3024606
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 @@ -92,7 +92,7 @@ async def kick(self, ctx: ApplicationContext, user: Member, reason: str, evidenc
)

await ctx.guild.kick(user=member, reason=reason)
infraction_reason = f"Previously kicked for {reason} - Evidence: {evidence}"
infraction_reason = f"Previously kicked 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 @@ -30,7 +30,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"Previously kicked for {reason} - Evidence: None", ctx.user
ctx.guild, user_to_kick, 0, f"Previously kicked for: {reason} - Evidence: None", ctx.user
)

# Assertions
Expand Down

0 comments on commit 3024606

Please sign in to comment.