common

fun common(value: String, filter: KClass<out Filter> = DefaultFilter::class, scope: Set<UpdateType> = DEFAULT_SCOPE, rateLimits: RateLimits = RateLimits.NOT_LIMITED, argParser: KClass<out ArgumentParser> = DefaultArgParser::class, block: OnCommandActivity)
fun common(value: Regex, filter: KClass<out Filter> = DefaultFilter::class, scope: Set<UpdateType> = DEFAULT_SCOPE, rateLimits: RateLimits = RateLimits.NOT_LIMITED, argParser: KClass<out ArgumentParser> = DefaultArgParser::class, block: OnCommandActivity)

Common action that will be checked after other activities.

Parameters

value

value that will be matched.

filter

condition that will be checked in a matching process.

scope

update type that should match for command.

rateLimits

restriction of command requests.

block

action that will be applied.