invoke

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()

Return

ComponentImpl.ComponentCreator which contains the json representation of the action row.

Parameters

components

The components to add to the action row.