UNPKG

dressed

Version:

A sleek, serverless-ready Discord bot framework.

16 lines 538 B
import { ComponentType, TextInputStyle } from "discord-api-types/v10"; /** * Creates a text input component * * An interactive component that allows users to enter free-form text responses in modals */ export function TextInput(config) { var _a; const style = (_a = config === null || config === void 0 ? void 0 : config.style) !== null && _a !== void 0 ? _a : "Short"; return { ...config, style: TextInputStyle[style], type: ComponentType.TextInput, }; } //# sourceMappingURL=text-input.js.map