CommandRequirement

class CommandRequirement<T>(message: String, check: (T) -> Boolean)

Representation of a requirement for a command

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

Constructors

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

Properties

Link copied to clipboard
val check: (T) -> Boolean
Link copied to clipboard
val message: String