@@ -15,10 +15,14 @@ namespace Discord | |||||
/// <c>false</c>. | /// <c>false</c>. | ||||
/// </returns> | /// </returns> | ||||
bool IsTemporary { get; } | bool IsTemporary { get; } | ||||
[Obsolete("This will always return false. If an invite is revoked, it will not be found and the invite will be null.")] | |||||
/// <summary> | |||||
/// Gets a value that indicates whether the invite has been revoked. | |||||
/// </summary> | |||||
/// <returns> | |||||
/// <c>true</c> if this invite was revoked; otherwise <c>false</c>. | |||||
/// </returns> | |||||
[Obsolete("This property doesn't exist anymore and shouldn't be used.")] | |||||
bool IsRevoked { get; } | bool IsRevoked { get; } | ||||
/// <summary> | /// <summary> | ||||
/// Gets the time (in seconds) until the invite expires. | /// Gets the time (in seconds) until the invite expires. | ||||
/// </summary> | /// </summary> | ||||
@@ -16,7 +16,5 @@ namespace Discord.API | |||||
public bool Temporary { get; set; } | public bool Temporary { get; set; } | ||||
[JsonProperty("created_at")] | [JsonProperty("created_at")] | ||||
public DateTimeOffset CreatedAt { get; set; } | public DateTimeOffset CreatedAt { get; set; } | ||||
[Obsolete("This will always return false. If an invite is revoked, it will not be found and the invite will be null.")] | |||||
public bool Revoked { get; set; } | |||||
} | } | ||||
} | } |
@@ -8,7 +8,8 @@ namespace Discord.Rest | |||||
{ | { | ||||
private long _createdAtTicks; | private long _createdAtTicks; | ||||
[Obsolete("This will always return false. If an invite is revoked, it will not be found and the invite will be null.")] | |||||
/// <inheritdoc /> | |||||
[Obsolete("This property doesn't exist anymore and shouldn't be used.")] | |||||
public bool IsRevoked { get; private set; } | public bool IsRevoked { get; private set; } | ||||
/// <inheritdoc /> | /// <inheritdoc /> | ||||
public bool IsTemporary { get; private set; } | public bool IsTemporary { get; private set; } | ||||
@@ -48,8 +48,9 @@ namespace Discord.WebSocket | |||||
int? IInvite.PresenceCount => throw new NotImplementedException(); | int? IInvite.PresenceCount => throw new NotImplementedException(); | ||||
/// <inheritdoc /> | /// <inheritdoc /> | ||||
int? IInvite.MemberCount => throw new NotImplementedException(); | int? IInvite.MemberCount => throw new NotImplementedException(); | ||||
[Obsolete("This will always return false. If an invite is revoked, it will not be found and the invite will be null.")] | |||||
bool IInviteMetadata.IsRevoked => false; | |||||
/// <inheritdoc /> | |||||
[Obsolete("This property doesn't exist anymore and shouldn't be used.")] | |||||
bool IInviteMetadata.IsRevoked => throw new NotImplementedException(); | |||||
/// <inheritdoc /> | /// <inheritdoc /> | ||||
public bool IsTemporary { get; private set; } | public bool IsTemporary { get; private set; } | ||||
/// <inheritdoc /> | /// <inheritdoc /> | ||||