Discolink
    Preparing search index...

    Class VoiceRegion

    Class representing a voice region and evaluating performing nodes

    Index
    id: string

    Id of the region

    player: Player
    • Whether this region has an entry for all nodes that are ready

      Returns boolean

    • Delete a node's entry

      Parameters

      • name: string

        Name of the node

      Returns boolean

    • Delete all node entries

      Returns void

    • Get the average ping of a node

      Parameters

      • node: string

        Name of the node

      Returns number | null

    • Get a node relevant for this region.

      When in sync, this will return the node with the lowest average ping.

      When not in sync, this will continue to yield nodes it doesn't have an entry for.

      Returns Node | undefined