UNPKG

@oceanicjs/builders

Version:

Helpful builders for various Discord related things.

16 lines (15 loc) 690 B
import type Button from "./Button"; import type SelectMenu from "./SelectMenu"; import type TextInput from "./TextInput"; import { ComponentTypes, MessageActionRow, ModalActionRow, RawMessageActionRow, RawModalActionRow } from "oceanic.js"; export default class ActionRow { private components; type: ComponentTypes; get size(): number; addComponent(component: Button | SelectMenu | TextInput): this; addComponents(...components: Array<Button | SelectMenu | TextInput>): this; getComponents(): Array<Button | SelectMenu | TextInput>; isEmpty(): boolean; toJSON(): MessageActionRow | ModalActionRow; toJSONRaw(): RawMessageActionRow | RawModalActionRow; }