UNPKG

pterowrap

Version:

A node.js wrapper for Pterodactyl API

18 lines (17 loc) 576 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class User { constructor(_client, data) { this._client = _client; const attributes = data.attributes; this.id = attributes.id; this.admin = attributes.admin; this.username = attributes.username; this.email = attributes.email; this.first_name = attributes.first_name; this.last_name = attributes.last_name; this.language = attributes.language; this.raw = attributes; } } exports.default = User;