UNPKG

@evolvejs/core

Version:

An advanced Discord API wrapper with TS and JS support

31 lines (30 loc) 911 B
"use strict"; /* eslint-disable @typescript-eslint/no-non-null-assertion */ /* eslint-disable no-mixed-spaces-and-tabs */ Object.defineProperty(exports, "__esModule", { value: true }); exports.GuildMember = void 0; const __1 = require("../.."); class GuildMember { constructor(data) { Object.defineProperty(this, "data", { value: data, enumerable: false, writable: false, }); this._handle(); } _handle() { if (!this.data) return; if (this.data.user) this.user = new __1.User(this.data.user); this.nick = this.data.nick; this.roles = this.data.roles; this.joinedAt = this.data.joined_at; this.premiumFrom = this.data.premium_since; this.deaf = this.data.deaf; this.mute = this.data.mute; return this; } } exports.GuildMember = GuildMember;