invoke
operator fun invoke(vararg components: ComponentImpl.ComponentCreator): ComponentImpl.ComponentCreator(source)
operator fun invoke(components: List<ComponentImpl.ComponentCreator>): ComponentImpl.ComponentCreator(source)
Creates a new action row with the given components. max 5 components per action row.
Example:
val actionRow = ActionRow.invoke(Button.invoke(ButtonStyle.PRIMARY, "1", "Primary"))
it.slash
.reply("This is a button test!")
.addActionRow(actionRow)
.reply()
Content copied to clipboard
Return
ComponentImpl.ComponentCreator which contains the json representation of the action row.
Parameters
components
The components to add to the action row.