UNPKG

ts-discord-wrapper

Version:
29 lines (23 loc) 702 B
import {EmbedField} from "../EmbedField.ts"; export class EmbedFieldBuilder { private readonly name : string; private readonly value : string; private readonly inline ?: boolean; constructor(name : string, value : string, inline ?: boolean) { this.name = name; this.value = value; this.inline = inline; } public getName() : string { return this.name; } public getValue() : string { return this.value; } public getInline() : boolean | undefined { return this.inline; } public build() : EmbedField { return new EmbedField(this.name, this.value, this.inline); } }