Discolink
    Preparing search index...

    Class VoiceState

    Class representing the state of a voice connection

    Index
    guildId: string

    Id of the guild

    player: Player
    • get ping(): number

      Ping of the node with the voice server

      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 joined(): boolean

      Whether the bot is in voice channel

      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 the node is connected to the voice server

      Returns boolean

    • get reconnecting(): boolean

      Whether a reconnect is in progress

      Returns boolean

    • get disconnected(): boolean

      Whether the node has disconnected from the voice server and no attempts are being made to reconnect

      Returns boolean

    • get changingNode(): boolean

      Whether the node for this connection is being changed

      Returns boolean

    • 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>