createRow()

A simple function that facilitates the creation of action row.

import { actionRowBuilder } from 'discord.js' // Module ESM
const { actionRowBuilder } = require('discord.js') // Module CommonJS

new ActionRowBuilder<AnyComponentBuilder>({
    components: [
        // components here
    ]
});

// To create a action row using lunaris
import { createRow } from 'lunaris' // Module ESM
const { createRow } = require('lunaris') // Module CommonJS

createRow(
    // components here
);

Possibles components

createButton()createLinkButton()

Last updated