LogoAntiRaid

@discord-types/builders/message/components/actionRow

API reference for @discord-types/builders/message/components/actionRow

@discord-types/builders/message/components/actionRow

Types

ActionRow

Raw Type
type ActionRow = ActionRow.Prototype, & {
	components: {button.JSON | textInput.JSON | selectMenu.JSON | JSON}
}

Intersection with variants:

Variant 2
PropTypeDescription
components
-

JSON

Raw Type
type JSON = ActionRow.Prototype.build(nil :: any),

Functions

ActionRow.Prototype.addComponent

[[

]]

Function Signature
--[[
	
]]
function ActionRow.Prototype.addComponent(self: ActionRow, component: button.JSON | textInput.JSON | selectMenu.JSON | JSON) -> ActionRow end

Arguments

component

Union with variants:

Variant 1

button.JSON

Variant 2

textInput.JSON

Variant 3

selectMenu.JSON

Variant 4

JSON

Returns

ret1

ActionRow

ActionRow.Prototype.build

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

Function Signature
--[[
	Responsible for building the ActionRow JSON that can be parsed by the Discord API.
]]
function ActionRow.Prototype.build(self: ActionRow) -> JSON end

Returns

ret1

JSON

ActionRow.Interface.new

[[ Responsible for creating a new ActionRow.

```lua

``` ]]

Function Signature
--[[
	Responsible for creating a new ActionRow.

	\`\`\`lua
	
	\`\`\`
]]
function ActionRow.Interface.new(resource: {
		components: {button.JSON | textInput.JSON | selectMenu.JSON | JSON}
	}?) -> ActionRow end

Arguments

resource

This field is optional and may not be specified

{components: {(button.JSON | textInput.JSON | selectMenu.JSON | JSON)}}?

Returns

ret1

ActionRow

Last updated on