Features

Methods of package.

Node Status

See the status of each node

const ptero = require('lmadactyl')
let result = await ptero.client.features.nodeStatus("https://yourpanel.com", "apikey")
console.log(result) //[{node: "test", online: false, maintence: false}]
ParameterValue

panelURL (Type STRING)

The link to your pterodactyl panel

apiKey (Type STRING)

Type 2

Request

Did you miss something from the package? Then make the request yourself!

const ptero = require('lmadactyl')
let result = await ptero.client.features.request("https://yourpanel.com/api/client/servers", {Authorization: 'Bearer xxx'}, "GET", null)
console.log(result) //Request return
ParameterValue

endpoint (Type STRING)

The link to your pterodactyl panel

header (Type OBJECT)

header object

method (Type GET)

Request type. (Valid types: get, patch, post, delete, put)

Body object (Default value: null)

Body object (Default value: null)

Last updated