init(userId = this.userId) {
    if (!userId) throw new Error("Provide a client id for lavalink to use.");
    else this.userId = userId;
    for (const s of this.nodes) {
      if (!this.sockets.has(s.id)) {
        const socket = new Socket(this, s);
        try {
          socket.connect();
          this.sockets.set(s.id, socket);
        } catch (e) {
          this.emit("socketError", socket, e);
        }
      }
    }
  }
/**
   * Initializes this manager. Connects all provided sockets.
   * @param userId The client user id.
   * @since 1.0.0
   */
Initializes this manager. Connects all provided sockets.
@param userId The client user id.
Initializes this manager . Connects all provided sockets . @param userId The client user id .
init(userId = this.userId) {
    if (!userId) throw new Error("Provide a client id for lavalink to use.");
    else this.userId = userId;
    for (const s of this.nodes) {
      if (!this.sockets.has(s.id)) {
        const socket = new Socket(this, s);
        try {
          socket.connect();
          this.sockets.set(s.id, socket);
        } catch (e) {
          this.emit("socketError", socket, e);
        }
      }
    }
  }
init ( userId = this . userId ) { if ( ! userId ) throw new Error ( "Provide a client id for lavalink to use." ) ; else this . userId = userId ; for ( const s of this . nodes ) { if ( ! this . sockets . has ( s . id ) ) { const socket = new Socket ( this , s ) ; try { socket . connect ( ) ; this . sockets . set ( s . id , socket ) ; } catch ( e ) { this . emit ( "socketError" , socket , e ) ; } } } }
Initializes this manager.
Initializes this manager .