UNPKG

jspteroapi

Version:

A pterodactyl v1 api using undici

33 lines (32 loc) 1.25 kB
import { Client } from '../index'; export declare class settingsMethods { private readonly client; constructor(client: Client); /** * @param serverId - ID of the server to get (In the settings tab of server/in link) * @param name - New name for the server * @returns Successfuly set new server name! * @example * ```ts * const res = await client.renameServer('c2f5a3b6', 'Best Server') // res = Successfuly set new server name! * ``` * @example * ```ts * client.renameServer('c2f5a3b6', 'Best Server').then((res) => console.log(res)) // res = Successfuly set new server name! * ``` */ renameServer: (serverId: string, name: string) => Promise<string>; /** * @param serverId - ID of the server to get (In the settings tab of server/in link) * @returns Successfuly started reinstalling! * @example * ```ts * const res = await client.reinstallServer('c2f5a3b6') // res = Successfuly started reinstalling! * ``` * @example * ```ts * client.reinstallServer('c2f5a3b6').then((res) => console.log(res)) // res = Successfuly started reinstalling! * ``` */ reinstallServer: (serverId: string) => Promise<string>; }