UNPKG

@evolvejs/core

Version:

An advanced Discord API wrapper with TS and JS support

31 lines (30 loc) 842 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Role = void 0; class Role { constructor(data) { this.hoist = false; this.managed = false; this.mentionable = false; Object.defineProperty(this, "data", { value: data, enumerable: false, writable: false, }); this._handle(); } _handle() { if (!this.data) return; this.id = this.data.id; this.name = this.data.name; this.color = this.data.color; this.hoist = this.data.hoist; this.position = this.data.position; this.permissions = this.data.permissions; this.managed = this.data.managed; this.mentionable = this.data.mentionable; return this; } } exports.Role = Role;