Discolink
    Preparing search index...

    Class VoiceRegion

    Class representing a voice region and evaluating performing nodes

    Index

    Constructors

    Properties

    id: string

    Id of the region

    player: Player

    Methods

    • 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

    • 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