UNPKG

dressed

Version:

A sleek, serverless-ready Discord bot framework.

16 lines 479 B
import { ComponentType, TextInputStyle, } from "discord-api-types/v10"; /** * Creates a text input component * * Text input object (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