ContextOption

annotation class ContextOption(source)

Sets a parameter as a context command option.

The supported data types can be seen in UserContextParameterResolver/MessageContextParameterResolver, more types can be supported by implementing those.

See also

@Optional

@Nullable

DSL equivalent (user context commands)

DSL equivalent (message context commands)