v2componentsbuilder
Version:
A discord.js v2components builder
31 lines (30 loc) • 771 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.V2SeparatorBuilder = void 0;
const v10_1 = require("discord-api-types/v10");
class V2SeparatorBuilder {
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.V2SeparatorBuilder = V2SeparatorBuilder;
;