ActionRow
Implementation of discords ActionRow object as a Luau builder.
https://discord.com/developers/docs/interactions/message-components#action-rows
Properties
The ActionRow instance has no set properties!
Methods
The ActionRow instance has no set methods!
Functions
addComponent
ActionRow . addComponent () -> ()
self: ActionRow
component: button.JSON
| textInput.JSON
| selectMenu.JSON
| JSON
Adds a component to the action row. Components can be buttons, text inputs, or select menus.
build
ActionRow . build () -> ()
self: ActionRow
Responsible for building the ActionRow JSON that can be parsed by the Discord API.
new
ActionRow . new () -> ()
resource: { components: { button.JSON
| textInput.JSON
| selectMenu.JSON
| JSON }, }?
Responsible for creating a new ActionRow.
local row = ActionRow.new() :addComponent(button) :build()