-
Notifications
You must be signed in to change notification settings - Fork 0
Node
Toddyn edited this page Dec 2, 2024
·
2 revisions
- There are 2 types of node, (nodeMap and Node)
- Used for: console.log events, Don't support map, some, etc methods Will return
- autoResume
- connected
- host
- info
- lastStats
- name
- password
- penalties
- port
- reconnectAttemped
- reconnectTimeout
- reconnectTries
- regions
- rest
- restUrl
- restVersion
- resumeKey
- resumeTimeout
- secure
- sessionId
- stats
- ws
- wsUrl
- Used for stats, map, some, etc (has map support, some, flat, etc)
- use as Array.from(client.aqua.nodeMap.values())
- Will return evertything from Node,
- Example usage: nodes.map((node) => console.log(node.stats.players)
Extra: Stats return:
{
players: 0,
playingPlayers: 0,
uptime: 0,
memory: {
free: 0,
used: 0,
allocated: 0,
reservable: 0,
},
cpu: {
cores: 0,
systemLoad: 0,
lavalinkLoad: 0,
},
frameStats: {
sent: 0,
nulled: 0,
deficit: 0,
},
};
Info returns:
{
buildTime: 0,
filters,
git,
jvm,
lavaplayer,
plugins,
sourceManagers,
version
}