UNPKG

pterowrap

Version:

A node.js wrapper for Pterodactyl API

23 lines (22 loc) 874 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const EggManager_1 = __importDefault(require("../../managers/application/EggManager")); class Nest { constructor(_client, data) { this._client = _client; const attributes = data.attributes; this.id = attributes.id; this.uuid = attributes.uuid; this.author = attributes.author; this.name = attributes.name; this.description = attributes.description; this.created_at = attributes.created_at; this.updated_at = attributes.updated_at; this.raw = attributes; this.eggs = new EggManager_1.default(this._client, this); } } exports.default = Nest;