ts-discord-wrapper
Version:
A wrapper for the Discord API written in TypeScript
29 lines (23 loc) • 702 B
text/typescript
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);
}
}