1.0.0 • Published 1 year ago
@lotus64/pterodactyl.client v1.0.0
Pterodactyl.client
Pterodactyl.client is avalidable for TypeScript
Instalation
$ npm i pterodactyl.client
Help
If you need any help, you can join my Discord server
How to use ?
You can read the DOCUMENTATION HERE
Guide
const ptero = new Pterodactyl()
.setApiKey("Your API Key (Admin)")
.setPanelURL("https://your.pterodactyl.panel") // Don't add the / at the end
.setApplicationKey("APP Key (client side)") // Optionnal
Users
ptero.users.fetch(id: number): User
.fetchAll(): User[]
.fetchByEmail(email: string): User
.create(new UserBuilder()): User
See User
Nodes
ptero.nodes.fetch(id: number): Node
.fetchAll(): Node[]
.create(new NodeBuilder()): Node
See Node
Locations
ptero.locations.fetch(id: number): Location
.fetchAll(): Location[]
.create(long: string, short: string): Location
See Location
Nests
ptero.nests.fetch(id: number): Nest
.fetchAll(): Nest[]
See Nest
Servers
ptero.servers.fetch(id: number): Server
.fetchAll(): Server[]
.create(new ServerBuilder()): Server
See Server
1.0.0
1 year ago