Discolink
    Preparing search index...

    Class VoiceState

    Class representing the state of a voice connection

    Index

    Constructors

    Properties

    guildId: string

    Id of the guild

    player: Player

    Accessors

    • get ping(): number

      Live connection ping as per node

      Returns number

    • get regionId(): string

      Id of the voice region

      Returns string

    • get channelId(): string

      Id of the voice channel

      Returns string

    • get selfDeaf(): boolean

      Whether the bot has deafened itself

      Returns boolean

    • get selfMute(): boolean

      Whether the bot has muted itself

      Returns boolean

    • get serverDeaf(): boolean

      Whether the bot is deafened by the guild

      Returns boolean

    • get serverMute(): boolean

      Whether the bot is muted by the guild

      Returns boolean

    • get suppressed(): boolean

      Whether the bot is suppressed

      Returns boolean

    • get destroyed(): boolean

      Whether this voice state instance is destroyed

      Returns boolean

    • get connected(): boolean

      Whether this voice connection is connected

      Returns boolean

    • get reconnecting(): boolean

      Whether this voice connection is reconnecting

      Returns boolean

    • get disconnected(): boolean

      Whether this voice connection is disconnected

      Returns boolean

    • get changingNode(): boolean

      Whether this voice connection is changing nodes

      Returns boolean

    Methods

    • Destroy this voice connection

      Parameters

      • Optionalreason: string

        Reason for destroying

      Returns Promise<void>

    • Change the node of this voice connection

      Parameters

      • name: string

        Name of the node

      Returns Promise<void>