@evolvejs/core
Version:
An advanced Discord API wrapper with TS and JS support
31 lines (30 loc) • 693 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.EmbedImageBuilder = void 0;
class EmbedImageBuilder {
setURL(url) {
this.url = url.toString();
return this;
}
setProxyURL(url) {
this.proxyURl = url.toString();
return this;
}
setHeight(height) {
this.height = height;
return this;
}
setWidth(width) {
this.width = width;
return this;
}
build() {
return {
url: this.url,
proxy_url: this.proxyURl,
height: this.height,
width: this.width,
};
}
}
exports.EmbedImageBuilder = EmbedImageBuilder;