UNPKG

discord-components

Version:

A discord.js Discordcomponents builder

31 lines (30 loc) 743 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.V2Separator = void 0; const v10_1 = require("discord-api-types/v10"); class V2Separator { constructor() { this.type = v10_1.ComponentType.Separator; } setId(id) { this.id = id; return this; } setSpacing(spacing) { this.spacing = spacing; return this; } setDivider(divider) { this.divider = divider; return this; } toJSON() { return { id: this.id ?? undefined, type: v10_1.ComponentType.Separator, spacing: this.spacing ?? 1, divider: this.divider ?? true, }; } } exports.V2Separator = V2Separator;