Clean up dnxcore voice stuff
This commit is contained in:
@@ -29,7 +29,6 @@ namespace Discord
|
|||||||
private readonly Random _rand;
|
private readonly Random _rand;
|
||||||
|
|
||||||
private volatile Task _tasks;
|
private volatile Task _tasks;
|
||||||
private string _currentVoiceServerId, _currentVoiceEndpoint, _currentVoiceToken;
|
|
||||||
|
|
||||||
/// <summary> Returns the User object for the current logged in user. </summary>
|
/// <summary> Returns the User object for the current logged in user. </summary>
|
||||||
public User User { get; private set; }
|
public User User { get; private set; }
|
||||||
@@ -63,9 +62,11 @@ namespace Discord
|
|||||||
public IEnumerable<Role> Roles => _roles;
|
public IEnumerable<Role> Roles => _roles;
|
||||||
private readonly AsyncCache<Role, API.Models.Role> _roles;
|
private readonly AsyncCache<Role, API.Models.Role> _roles;
|
||||||
|
|
||||||
|
#if !DNXCORE50
|
||||||
|
private string _currentVoiceServerId, _currentVoiceEndpoint, _currentVoiceToken;
|
||||||
public string CurrentVoiceServerId { get { return _currentVoiceEndpoint != null ? _currentVoiceToken : null; } }
|
public string CurrentVoiceServerId { get { return _currentVoiceEndpoint != null ? _currentVoiceToken : null; } }
|
||||||
public Server CurrentVoiceServer => _servers[CurrentVoiceServerId];
|
public Server CurrentVoiceServer => _servers[CurrentVoiceServerId];
|
||||||
|
#endif
|
||||||
/// <summary> Returns true if the user has successfully logged in and the websocket connection has been established. </summary>
|
/// <summary> Returns true if the user has successfully logged in and the websocket connection has been established. </summary>
|
||||||
public bool IsConnected => _isConnected;
|
public bool IsConnected => _isConnected;
|
||||||
private bool _isConnected;
|
private bool _isConnected;
|
||||||
|
|||||||
Reference in New Issue
Block a user