CommandRequirement

fun <T> CommandRequirement(message: String, check: (T) -> Boolean = { true })

Parameters

message

The message to send to the user if the requirement is not met

check

The function to check if the requirement is met