@evolvejs/core
Version:
An advanced Discord API wrapper with TS and JS support
29 lines (28 loc) • 618 B
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.EmbedFieldBuilder = void 0;
class EmbedFieldBuilder {
constructor() {
this.inline = false;
}
setName(name) {
this.name = name;
return this;
}
setValue(value) {
this.value = value;
return this;
}
enableInline(inline) {
this.inline = inline;
return this;
}
build() {
return {
name: this.name,
value: this.value,
inline: this.inline,
};
}
}
exports.EmbedFieldBuilder = EmbedFieldBuilder;