Package discord4j.voice
Interface VoiceServerUpdateTask
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A listener to track voice server changes due to migrations or disconnections. A voice client can then react to
external changes coming from the gateway.
-
Method Summary
Modifier and TypeMethodDescriptiononVoiceServerUpdate
(Snowflake guildId) Deprecated.default Flux<VoiceServerOptions>
onVoiceServerUpdates
(Snowflake guildId) Return a Flux sequence containingVoiceServerOptions
instances indicating a voice server update payload was received from the gateway connection for the given guild.
-
Method Details
-
onVoiceServerUpdate
Deprecated.for removal in future versions, migrate toonVoiceServerUpdates(Snowflake)
as voice clients can receive multiple voice server updates throughout their lifecycleReturn a Mono sequence containing an eventualVoiceServerOptions
instance indicating a voice server update payload was received from the gateway connection for the given guild.- Parameters:
guildId
- the guild ID listening for voice server updates- Returns:
- a Mono with a VoiceServerOptions payload
-
onVoiceServerUpdates
Return a Flux sequence containingVoiceServerOptions
instances indicating a voice server update payload was received from the gateway connection for the given guild.- Parameters:
guildId
- the guild ID listening for voice server updates- Returns:
- a Flux with a VoiceServerOptions payload
-
onVoiceServerUpdates(Snowflake)
as voice clients can receive multiple voice server updates throughout their lifecycle