diff --git a/DisCatSharp/Entities/Voice/DiscordVoiceRegion.cs b/DisCatSharp/Entities/Voice/DiscordVoiceRegion.cs
index b5c462de7..38aa67716 100644
--- a/DisCatSharp/Entities/Voice/DiscordVoiceRegion.cs
+++ b/DisCatSharp/Entities/Voice/DiscordVoiceRegion.cs
@@ -1,127 +1,121 @@
// This file is part of the DisCatSharp project.
//
// Copyright (c) 2021 AITSYS
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all
// copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
using Newtonsoft.Json;
namespace DisCatSharp.Entities
{
///
/// Represents information about a Discord voice server region.
///
public class DiscordVoiceRegion
{
///
/// Gets the unique ID for the region.
///
[JsonProperty("id", NullValueHandling = NullValueHandling.Ignore)]
public string Id { get; internal set; }
///
/// Gets the name of the region.
///
[JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)]
public string Name { get; internal set; }
///
/// Gets an example server hostname for this region.
///
[JsonProperty("sample_hostname", NullValueHandling = NullValueHandling.Ignore)]
public string SampleHostname { get; internal set; }
///
/// Gets an example server port for this region.
///
[JsonProperty("sample_port", NullValueHandling = NullValueHandling.Ignore)]
public int SamplePort { get; internal set; }
- ///
- /// Gets whether this is a VIP-only region.
- ///
- [JsonProperty("vip", NullValueHandling = NullValueHandling.Ignore)]
- public bool IsVIP { get; internal set; }
-
///
/// Gets whether this region is the most optimal for the current user.
///
[JsonProperty("optimal", NullValueHandling = NullValueHandling.Ignore)]
public bool IsOptimal { get; internal set; }
///
/// Gets whether this voice region is deprecated.
///
[JsonProperty("deprecated", NullValueHandling = NullValueHandling.Ignore)]
public bool IsDeprecated { get; internal set; }
///
/// Gets whether this is a custom voice region.
///
[JsonProperty("custom", NullValueHandling = NullValueHandling.Ignore)]
public bool IsCustom { get; internal set; }
///
/// Gets whether two s are equal.
///
/// The region to compare with.
///
public bool Equals(DiscordVoiceRegion region)
=> this == region;
///
/// Whether two regions are equal.
///
/// A voice region.
public override bool Equals(object obj) => this.Equals(obj as DiscordVoiceRegion);
///
/// Gets the hash code.
///
public override int GetHashCode() => this.Id.GetHashCode();
///
/// Gets whether the two objects are equal.
///
/// First voice region to compare.
/// Second voice region to compare.
/// Whether the two voice regions are equal.
public static bool operator ==(DiscordVoiceRegion left, DiscordVoiceRegion right)
{
var o1 = left as object;
var o2 = right as object;
return (o1 != null || o2 == null) && (o1 == null || o2 != null) && ((o1 == null && o2 == null) || left.Id == right.Id);
}
///
/// Gets whether the two objects are not equal.
///
/// First voice region to compare.
/// Second voice region to compare.
/// Whether the two voice regions are not equal.
public static bool operator !=(DiscordVoiceRegion left, DiscordVoiceRegion right)
=> !(left == right);
///
/// Initializes a new instance of the class.
///
internal DiscordVoiceRegion() { }
}
}