ServersEndpoint
Functions
#list(params)
| Parameter | Type | Description |
|---|---|---|
| params | Object |
Additional uri parameters. See official documentaion. |
Returns: Promise<ServerList>
Returns a navigatable list of servers.
#get(id)
| Parameter | Type | Description |
|---|---|---|
| id | number |
Server id. |
Returns: Promise<Server>
Returns a single Server class instance.
#build(name)
| Parameter | Type | Description |
|---|---|---|
| name | string |
A new name for the server. |
Returns: ServerBuilder
#changeName(id, name)
| Parameter | Type | Description |
|---|---|---|
| id | number |
The server id. |
| name | string |
A new name for this server. |
Returns: Promise<Server>
Returns an updated version of the Server instance.
#delete(id)
| Parameter | Type | Description |
|---|---|---|
| id | number |
The server id. |
Returns: Promise<Action>
Properties
.actions
An instance of ServerActionsEndpoint