You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/structures/Player.ts
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -846,11 +846,15 @@ export class Player {
846
846
}
847
847
848
848
/**
849
-
* Move the player to a different node. If no node is provided, it will find the least used node that is not the same as the current node.
849
+
* (Wrapper-FN for changeNode) Move the player to a different node. If no node is provided, it will find the least used node that is not the same as the current node.
850
850
* @param node the id of the node to move to
851
851
* @returns the player
852
852
* @throws RangeError if there is no available nodes.
853
853
* @throws Error if the node to move to is the same as the current node.
854
+
* @example
855
+
* ```ts
856
+
* const newNodeMovedTo = await player.moveNode(); // no need to specify the new node, it will find a least used node automatically, but you can ofc. use a custom node id.
0 commit comments