@lotus64/pterodactyl.client
v1.0.0
Published
An easy pterodactyl manager
Maintainers
Readme
Pterodactyl.client
Pterodactyl.client is avalidable for TypeScript
Instalation
$ npm i pterodactyl.clientHelp
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)") // OptionnalUsers
ptero.users.fetch(id: number): User
.fetchAll(): User[]
.fetchByEmail(email: string): User
.create(new UserBuilder()): UserSee User
Nodes
ptero.nodes.fetch(id: number): Node
.fetchAll(): Node[]
.create(new NodeBuilder()): NodeSee Node
Locations
ptero.locations.fetch(id: number): Location
.fetchAll(): Location[]
.create(long: string, short: string): LocationSee Location
Nests
ptero.nests.fetch(id: number): Nest
.fetchAll(): Nest[]See Nest
Servers
ptero.servers.fetch(id: number): Server
.fetchAll(): Server[]
.create(new ServerBuilder()): ServerSee Server
