Package discord4j.voice
Interface VoiceConnectionFactory
-
- All Known Implementing Classes:
DefaultVoiceConnectionFactory
@Experimental public interface VoiceConnectionFactory
A factory to createVoiceConnection
instances using a set ofVoiceGatewayOptions
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Mono<VoiceConnection>
create(VoiceGatewayOptions options)
Return aMono
that, upon subscription, is able to obtain aVoiceConnection
from the givenVoiceGatewayOptions
.
-
-
-
Method Detail
-
create
Mono<VoiceConnection> create(VoiceGatewayOptions options)
Return aMono
that, upon subscription, is able to obtain aVoiceConnection
from the givenVoiceGatewayOptions
. The resulting connection can be an existing one if it's still active for a guild.- Parameters:
options
- the set of options to configure voice connections- Returns:
- a
Mono
that, upon subscription, can return aVoiceConnection
. In case an error occurs, it is emitted through theMono
.
-
-