Discolink
    Preparing search index...

    Class VoiceRegion

    Class representing a voice region, monitoring node ping

    Index
    id: string

    Id of this region

    player: Player
    • get windowSize(): number

      Size (in ms) of the time window used by this region

      Returns number

    • Whether this region has data for all nodes that are ready

      Returns boolean

    • Whether this region has data for a node

      Parameters

      • name: string

        Name of the node

      Returns boolean

    • Delete data for a node

      Parameters

      • name: string

        Name of the node

      Returns boolean

    • Delete data for all nodes

      Returns void

    • Get the median ping of a node. Returns -1 when data is insufficient.

      Parameters

      • node: string

        Name of the node

      Returns number

    • Get the average ping of a node. Returns -1 when data is insufficient.

      Parameters

      • node: string

        Name of the node

      Returns number

    • Get a node with the lowest ping in this region.

      If data is insufficient, this will return a node based on its metrics.

      Parameters

      • ...exclude: string[]

        Nodes to exclude

      Returns Node | undefined