Discolink
    Preparing search index...

    Class VoiceState

    Class representing voice state of the bot as a guild member

    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 a voice channel at all

      Returns boolean

    • get suppressed(): boolean

      Whether the bot is suppressed (in stage audience, i.e. not a speaker)

      Returns boolean

    • get unusable(): boolean

      Whether the queue associated with this voice state is (or being) destroyed

      Returns boolean

    • get destroyed(): boolean

      Whether the queue associated with this voice state 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 of the voice connection is being changed

      Returns boolean

    • Change the node of the voice connection

      Parameters

      • Optionalname: string

        Name of the node. Auto-picks if not specified and throws if none are available.

      Returns Promise<void>