Discore
Show / Hide Table of Contents

Interface IGatewayVoiceBridge

Provides a bridge between a Gateway connection and associated voice connections.

Namespace: Discore.Voice
Assembly: Discore.dll
Syntax
public interface IGatewayVoiceBridge
Remarks

The purpose of this interface is to let voice connections run either in the same or a different process than the main bot application (or even a different machine entirely). Handling voice can be more resource intensive than usual bot operations, so allowing voice connections to live and scale independently of the main bot may be desirable.

Ex. applications may implement this to bridge a network gap between the main bot application and the application(s) responsible for handling voice connections.

Implementers are expected to forward Gateway events to each bridge event and methods back to the originating Gateway connection. Voice connections are tied to the single Gateway connection that serves the guild where voice is connected.

Methods

Name Description
UpdateVoiceStateAsync(Snowflake, Snowflake?, bool, bool, CancellationToken?)

Joins, moves, or disconnects the application from a voice channel.

Events

Name Description
OnVoiceServerUpdate

Called when the voice server for a guild is updated.

OnVoiceStateUpdate

Called when someone joins/leaves/moves voice channels.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX