Added ChannelId and ServerId to IDiscordVoiceClient
This commit is contained in:
@@ -4,6 +4,8 @@ namespace Discord.Audio
|
||||
{
|
||||
public interface IDiscordVoiceClient
|
||||
{
|
||||
long? ChannelId { get; }
|
||||
long? ServerId { get; }
|
||||
IDiscordVoiceBuffer OutputBuffer { get; }
|
||||
|
||||
Task JoinChannel(long channelId);
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user