@evolvejs/core
Version:
An advanced Discord API wrapper with TS and JS support
24 lines (23 loc) • 582 B
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Overwrite = void 0;
class Overwrite {
constructor(data) {
Object.defineProperty(this, "data", {
value: data,
enumerable: false,
writable: false,
});
this._handle();
}
_handle() {
if (!this.data)
return;
this.id = this.data.id;
this.type = this.data.type;
this.allow = this.data.allow;
this.deny = this.data.deny;
return this;
}
}
exports.Overwrite = Overwrite;