Search...

entersState

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