Browse Source

Added ChannelId and ServerId to IDiscordVoiceClient

tags/docs-0.9
RogueException 9 years ago
parent
commit
5cf2eb6749
2 changed files with 4 additions and 0 deletions
  1. +2
    -0
      src/Discord.Net/Audio/IDiscordVoiceClient.cs
  2. +2
    -0
      src/Discord.Net/DiscordWSClient.Voice.cs

+ 2
- 0
src/Discord.Net/Audio/IDiscordVoiceClient.cs View File

@@ -4,6 +4,8 @@ namespace Discord.Audio
{
public interface IDiscordVoiceClient
{
long? ChannelId { get; }
long? ServerId { get; }
IDiscordVoiceBuffer OutputBuffer { get; }

Task JoinChannel(long channelId);


+ 2
- 0
src/Discord.Net/DiscordWSClient.Voice.cs View File

@@ -7,6 +7,8 @@ namespace Discord
public partial class DiscordWSClient : IDiscordVoiceClient
{
IDiscordVoiceBuffer IDiscordVoiceClient.OutputBuffer => _voiceSocket.OutputBuffer;
long? IDiscordVoiceClient.ServerId => _voiceSocket.CurrentServerId;
long? IDiscordVoiceClient.ChannelId => _voiceSocket.CurrentChannelId;

async Task IDiscordVoiceClient.JoinChannel(long channelId)
{


Loading…
Cancel
Save