Table of Contents
API reference

Method GetBridgeOpusSource

Namespace
DisCatSharp.Lavalink
Assembly
DisCatSharp.Lavalink.dll

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

guildId ulong

The guild snowflake.

Returns

IExternalOpusSource

The IExternalOpusSource when bridge mode is active and the guild has an attached source; otherwise null.