UNPKG

dressed

Version:

A sleek, serverless-ready Discord bot framework.

19 lines 652 B
import { ComponentType, SeparatorSpacingSize } from "discord-api-types/v10"; /** * Creates a separator component * * Component to add vertical padding between other components * * **IMPORTANT**: * In order to use this component, you must add the `MessageFlags.IsComponentsV2` flag to your message */ export function Separator(config) { var _a; const spacing = (_a = config === null || config === void 0 ? void 0 : config.spacing) !== null && _a !== void 0 ? _a : "Small"; return { ...config, spacing: SeparatorSpacingSize[spacing], type: ComponentType.Separator, }; } //# sourceMappingURL=separator.js.map