You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you add a validate block to a KordExUtils Arguments.function, it won't get run. It still runs the validity check in the KordExUtils function, but will not check whether the Valid block added to the function is correct.
Example:
val amount by availableCurrency("triedBettingNothing", "triedOverBetting") {
name = "bet"
description = "amount to bet"
validate {
val totalBet = this.value * xtimes
val balance = balanceManager.get(this.context.user).balance
failIf(tr("triedOverBetting", xtimes, this.value)) { true }
}
}
this will run perfectly fine even though it should always fail.
The text was updated successfully, but these errors were encountered:
If you add a validate block to a
KordExUtils
Arguments.function, it won't get run. It still runs the validity check in theKordExUtils
function, but will not check whether theValid
block added to the function is correct.Example:
this will run perfectly fine even though it should always fail.
The text was updated successfully, but these errors were encountered: