Function createSwarm

  • Creates a new Swarm object. Bots are removed from the swarm on disconnect.

    Parameters

    • options: Partial<ClientOptions>

      Connection options for the swarm.

    • Optional auths: Partial<ClientOptions>[] = []

      A list of initial authentication options for each member of the swarm. Defaults to no members.

    Returns Swarm

    A newly created swarm.