Discolink
    Preparing search index...

    Class VoiceState

    A class representing the state of a voice connection

    Index

    Constructors

    Accessors

    • get valid(): boolean

      Whether this state is still on the same node session id as before

      Returns boolean

    • get connected(): boolean

      Whether this state is valid and lavalink is connected to the voice server

      Returns boolean

    • get suppressed(): boolean

      Whether the bot is suppressed from speaking (e.g. stage channels)

      Returns boolean

    • get changingNode(): boolean

      Whether this state's node is in transition to a different node

      Returns boolean

    Methods

    • Destroys this instance of VoiceState, removing it from its manager

      Parameters

      • Optionalreason: string

        Reason for destroying

      Returns Promise<void>