API reference
Method RebindBridgeOpusSource
- Namespace
- DisCatSharp.Lavalink
- Assembly
- DisCatSharp.Lavalink.dll
RebindBridgeOpusSource(ulong, IExternalOpusSource, CancellationToken)
Rebinds the voice connection for the specified guild to a new Opus source. Typically used to insert a VoiceOutputController between the bridge source and the voice connection. The previous binding is cancelled before the new one starts.
public bool RebindBridgeOpusSource(ulong guildId, IExternalOpusSource newSource, CancellationToken cancellationToken = default)
Parameters
guildIdulongThe guild snowflake.
newSourceIExternalOpusSourceThe new Opus source to bind (e.g. a VoiceOutputController).
cancellationTokenCancellationTokenCancellation token.