UNPKG

dressed

Version:

A sleek, serverless-ready Discord bot framework.

20 lines 577 B
import { ComponentType } from "discord-api-types/v10"; /** * Creates a label component * * Container associating a label and description with a component * * @param label The label text; max 45 characters * @param component The component within the label * @param description An optional description text for the label; max 100 characters */ export function Label(label, component, description, config) { return { ...config, label, description, component, type: ComponentType.Label, }; } //# sourceMappingURL=label.js.map