setSelectedItem

fun setSelectedItem(index: Int): T(source)

Sets the selected wrapped pagination.

This does not update the active pagination, you can use getCurrentMessage and InteractionHook.editOriginal in order to update the message.

Return

This instance for chaining convenience

Parameters

index

Index of the wrapped pagination, from 0 to [the number of paginators] - 1


fun setSelectedItem(itemLabel: String): T(source)

Sets the selected wrapped pagination.

This does not update the active pagination, you can use getCurrentMessage and InteractionHook.editOriginal in order to update the message.

Return

This instance for chaining convenience

Parameters

itemLabel

Label which must be matched against SelectContent.label