ActionRowBuilder class

const actionRow = new ActionRowBuilder(...args?: ButtonBuilder | SelectMenuBuilder);

constructor

The ActionRowBuilder class provides multiple arguments which are all optional. The arguments can be used to add the ButtonBuilder or SelectMenuBuilder classes and create this way an action row.

Every ActionRowBuilder class may maximum include five components

Properties

components

Is an array with the Discord.js ButtonBuilder or StringSelectMenuBuilder classes so they can be send in a channel.

Functions

addComponents

actionRow.addComponents(...args?: ButtonBuilder | SelectMenuBuilder) : ActionRowBuilder;

Adds components which weren't added in the constructor to the ActionRowBuilder. The function returns the same ActionRowBuilder class so you don't have to declare it everytime again.

Last updated