Skip to content

Commit d7117ca

Browse files
committed
fix: remove unneeded parameter from function call
1 parent 32476b1 commit d7117ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/me/ddivad/judgebot/services/infractions/InfractionService.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class InfractionService(private val configuration: Configuration,
3737
PunishmentType.BAN -> {
3838
val clearTime = infraction.punishment!!.duration?.let { DateTime().millis.plus(it) }
3939
val punishment = Punishment(target.id.value, InfractionType.Ban, infraction.reason, infraction.moderator, clearTime)
40-
banService.banUser(target, guild, infraction.moderator, punishment)
40+
banService.banUser(target, guild, punishment)
4141
}
4242
}
4343
}

0 commit comments

Comments
 (0)