Added ChannelId and ServerId to IDiscordVoiceClient

This commit is contained in:
RogueException
2015-11-30 09:27:28 -04:00
parent 13d397a0dc
commit 5cf2eb6749
2 changed files with 4 additions and 0 deletions

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);

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)
{