Skip to content

ActionRow

Implementation of discords ActionRow object as a Luau builder.

https://discord.com/developers/docs/interactions/message-components#action-rows

ActionRow.components  :: SelectMenu}

The components that are part of this action row. Can include buttons, text inputs, and select menus.

ActionRow : addComponent ( component )  -> ActionRow

Adds a component to the action row. Components can be buttons, text inputs, or select menus.

Parameters

component: JSON | JSON

Returns

ActionRow
ActionRow : build ( )  -> JSON

Responsible for building the ActionRow JSON that can be parsed by the Discord API.

Returns

JSON
ActionRow . new ( resource )  -> ActionRow

Responsible for creating a new ActionRow.

local row = ActionRow.new()
:addComponent(button)
:build()

Parameters

resource: {
{ components: { button.JSON | textInput.JSON | selectMenu.JSON | JSON } }

Returns

ActionRow