UNPKG

pterodactyl-manager

Version:

A powerful and easy-to-use API wrapper for Pterodactyl's API, providing a seamless integration of server management and user administration functionalities.

14 lines (12 loc) 407 B
const getServer = require('./getServer'); module.exports = async function getUser(url, headers, query) { try { const response = await fetch(`${url}/api/application/servers/${(await getServer(url, headers, query)).attributes.id}/unsuspend`, { method: "POST", headers }); return await response.text() } catch (err) { console.log(err); } };