create(guild) {
    const id = typeof guild === "string" ? guild : guild.id;
    const existing = this.players.get(id);
    if (existing) return existing;
    const sock = this.ideal[0];
    if (!sock) throw new Error("Manager#create(): No available nodes.");
    const player = new Player(sock, id);
    this.players.set(id, player);
    return player;
  }
/**
   * Create a player.
   * @param guild The guild this player is for.
   * @since 2.1.0
   */
Create a player.
@param guild The guild this player is for.
Create a player . @param guild The guild this player is for .
create(guild) {
    const id = typeof guild === "string" ? guild : guild.id;
    const existing = this.players.get(id);
    if (existing) return existing;
    const sock = this.ideal[0];
    if (!sock) throw new Error("Manager#create(): No available nodes.");
    const player = new Player(sock, id);
    this.players.set(id, player);
    return player;
  }
create ( guild ) { const id = typeof guild === "string" ? guild : guild . id ; const existing = this . players . get ( id ) ; if ( existing ) return existing ; const sock = this . ideal [ 0 ] ; if ( ! sock ) throw new Error ( "Manager#create(): No available nodes." ) ; const player = new Player ( sock , id ) ; this . players . set ( id , player ) ; return player ; }
Create a player.
Create a player .