@Experimental public interface VoiceConnectionFactory
VoiceConnection
instances using a set of VoiceGatewayOptions
.Modifier and Type | Method and Description |
---|---|
Mono<VoiceConnection> |
create(VoiceGatewayOptions options)
Return a
Mono that, upon subscription, is able to obtain a VoiceConnection from the given
VoiceGatewayOptions . |
Mono<VoiceConnection> create(VoiceGatewayOptions options)
Mono
that, upon subscription, is able to obtain a VoiceConnection
from the given
VoiceGatewayOptions
. The resulting connection can be an existing one if it's still active for a guild.options
- the set of options to configure voice connectionsMono
that, upon subscription, can return a VoiceConnection
. In case an error occurs,
it is emitted through the Mono
.