Skip to content

ActionRowBuilder

ActionRowBuilder is used to construct an action row, which can contain up to five components like buttons, selections, or text inputs.

Properties

The ActionRowBuilder instance has no set properties!

Methods

addComponent

ActionRowBuilder : addComponent (

     componentObject: ActionRowBuilder
                      | ButtonBuilder
                      | SelectionBuilder
                      | TextInputBuilder
)  -> Builders.Interface.ActionRowBuilder

Adds a component to the action row. The action row can contain up to five components.

toPayloadObject

ActionRowBuilder : toPayloadObject ()  -> Network.Resolvable

Converts the action row to a JSON object that can be sent to the Discord API.

Functions

new

ActionRowBuilder . new ()  -> ()

Creates a new instance of ActionRowBuilder.