Package discord4j.voice
Interface VoiceConnectionFactory
-
- All Known Implementing Classes:
DefaultVoiceConnectionFactory
@Experimental public interface VoiceConnectionFactory
A factory to createVoiceConnectioninstances using a set ofVoiceGatewayOptions.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Mono<VoiceConnection>create(VoiceGatewayOptions options)Return aMonothat, upon subscription, is able to obtain aVoiceConnectionfrom the givenVoiceGatewayOptions.
-
-
-
Method Detail
-
create
Mono<VoiceConnection> create(VoiceGatewayOptions options)
Return aMonothat, upon subscription, is able to obtain aVoiceConnectionfrom 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
Monothat, upon subscription, can return aVoiceConnection. In case an error occurs, it is emitted through theMono.
-
-