API reference
Method GetBridgeOpusSource
- Namespace
- DisCatSharp.Lavalink
- Assembly
- DisCatSharp.Lavalink.dll
GetBridgeOpusSource(ulong)
Gets the bridge-mode IExternalOpusSource for the specified guild, if available. Use this to feed a VoiceOutputController via SetMusicSourceAsync(IExternalOpusSource?, CancellationToken).
public IExternalOpusSource? GetBridgeOpusSource(ulong guildId)
Parameters
guildIdulongThe guild snowflake.
Returns
- IExternalOpusSource
The IExternalOpusSource when bridge mode is active and the guild has an attached source; otherwise null.