using System.Diagnostics;
namespace Discord.WebSocket
{
///
/// Represents a WebSocket-based voice server.
///
[DebuggerDisplay(@"{DebuggerDisplay,nq}")]
public class SocketVoiceServer
{
///
/// Gets the guild associated with the voice server.
///
///
/// A cached entity of the guild.
///
public Cacheable Guild { get; }
///
/// Gets the endpoint URL of the voice server host.
///
///
/// An URL representing the voice server host.
///
public string Endpoint { get; }
///
/// Gets the voice connection token.
///
///
/// A voice connection token.
///
public string Token { get; }
internal SocketVoiceServer(Cacheable guild, string endpoint, string token)
{
Guild = guild;
Endpoint = endpoint;
Token = token;
}
private string DebuggerDisplay => $"SocketVoiceServer ({Guild.Id})";
}
}