entersState
Allows a voice connection a specified amount of time to enter a given state, otherwise rejects with an error.
entersState(target, status, timeoutOrSignal): Promise<VoiceConnection>
Allows a voice connection a specified amount of time to enter a given state, otherwise rejects with an error.
| Parameter | Type | Optional | Description | | --------------- | ------------------------------------------------------------------------------------------------- | ----------- | ----------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | | target | VoiceConnection | ❌ | The voice connection that we want to observe the state change for | | status | VoiceConnectionStatus | ❌ | The status that the voice connection should be in | | timeoutOrSignal | number | AbortSignal | ❌ | The maximum time we are allowing for this to occur, or a signal that will abort the operation |