From a19c4b4547976edc1aa27b9742ad3b4ff2dd5257 Mon Sep 17 00:00:00 2001 From: RogueException Date: Tue, 25 Aug 2015 15:14:12 -0300 Subject: [PATCH] Clean up dnxcore voice stuff --- src/Discord.Net/DiscordClient.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Discord.Net/DiscordClient.cs b/src/Discord.Net/DiscordClient.cs index e06beb8e2..9825effb2 100644 --- a/src/Discord.Net/DiscordClient.cs +++ b/src/Discord.Net/DiscordClient.cs @@ -29,7 +29,6 @@ namespace Discord private readonly Random _rand; private volatile Task _tasks; - private string _currentVoiceServerId, _currentVoiceEndpoint, _currentVoiceToken; /// Returns the User object for the current logged in user. public User User { get; private set; } @@ -62,10 +61,12 @@ namespace Discord /// This collection does not guarantee any ordering. public IEnumerable Roles => _roles; private readonly AsyncCache _roles; - + +#if !DNXCORE50 + private string _currentVoiceServerId, _currentVoiceEndpoint, _currentVoiceToken; public string CurrentVoiceServerId { get { return _currentVoiceEndpoint != null ? _currentVoiceToken : null; } } public Server CurrentVoiceServer => _servers[CurrentVoiceServerId]; - +#endif /// Returns true if the user has successfully logged in and the websocket connection has been established. public bool IsConnected => _isConnected; private bool _isConnected;