new ServerManager(client)
Parameters:
Name | Type | Description |
---|---|---|
client |
Client | The client being used |
- Source:
Methods
(async) fetch(id) → {Promise.<Server>}
Fetch a server from its id
Parameters:
Name | Type | Description |
---|---|---|
id |
string | The id of server being fetched. This is NOT the pterodactyl id |
- Source:
Returns:
Fetched server
- Type
- Promise.<Server>
(async) fetchAll() → {Promise.<Collection.<string, Server>>}
Fetch all servers
- Source:
Returns:
A Collection of servers mapped with their id
- Type
- Promise.<Collection.<string, Server>>