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