ActionRow
Implementation of discords ActionRow object as a Luau builder.
https://discord.com/developers/docs/interactions/message-components#action-rows
Summary
Properties
Section titled “Properties”components
Section titled “components”The components that are part of this action row. Can include buttons, text inputs, and select menus.
Methods
Section titled “Methods”addComponent
Section titled “addComponent”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 |
Functions
Section titled “Functions”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 |