ComponentData

Sets this parameter as data coming from IPersistentActionableComponent.bindTo.

The order and types of the passed data must match with the handler parameters.

Requirements

A compatible ComponentParameterResolver must exist for the annotated parameter, the default supported types can be seen in ParameterResolver.

If your parameter is a serializable object, you can instead use @SerializableComponentData.

See also

@JDAButtonListener

@JDASelectMenuListener