diff --git a/src/Discord.Net.Core/Entities/Invites/IInviteMetadata.cs b/src/Discord.Net.Core/Entities/Invites/IInviteMetadata.cs index bfa958f43..c64b3205b 100644 --- a/src/Discord.Net.Core/Entities/Invites/IInviteMetadata.cs +++ b/src/Discord.Net.Core/Entities/Invites/IInviteMetadata.cs @@ -15,10 +15,14 @@ namespace Discord /// false. /// 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.")] + /// + /// Gets a value that indicates whether the invite has been revoked. + /// + /// + /// true if this invite was revoked; otherwise false. + /// + [Obsolete("This property doesn't exist anymore and shouldn't be used.")] bool IsRevoked { get; } - /// /// Gets the time (in seconds) until the invite expires. /// diff --git a/src/Discord.Net.Rest/API/Common/InviteMetadata.cs b/src/Discord.Net.Rest/API/Common/InviteMetadata.cs index 6c05bff5d..f818de699 100644 --- a/src/Discord.Net.Rest/API/Common/InviteMetadata.cs +++ b/src/Discord.Net.Rest/API/Common/InviteMetadata.cs @@ -16,7 +16,5 @@ namespace Discord.API public bool Temporary { get; set; } [JsonProperty("created_at")] 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; } } } diff --git a/src/Discord.Net.Rest/Entities/Invites/RestInviteMetadata.cs b/src/Discord.Net.Rest/Entities/Invites/RestInviteMetadata.cs index 915210db6..07ee5851c 100644 --- a/src/Discord.Net.Rest/Entities/Invites/RestInviteMetadata.cs +++ b/src/Discord.Net.Rest/Entities/Invites/RestInviteMetadata.cs @@ -8,7 +8,8 @@ namespace Discord.Rest { 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.")] + /// + [Obsolete("This property doesn't exist anymore and shouldn't be used.")] public bool IsRevoked { get; private set; } /// public bool IsTemporary { get; private set; } diff --git a/src/Discord.Net.WebSocket/Entities/Invites/SocketInvite.cs b/src/Discord.Net.WebSocket/Entities/Invites/SocketInvite.cs index 93c13ded9..5dc53a833 100644 --- a/src/Discord.Net.WebSocket/Entities/Invites/SocketInvite.cs +++ b/src/Discord.Net.WebSocket/Entities/Invites/SocketInvite.cs @@ -48,8 +48,9 @@ namespace Discord.WebSocket int? IInvite.PresenceCount => 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; + /// + [Obsolete("This property doesn't exist anymore and shouldn't be used.")] + bool IInviteMetadata.IsRevoked => throw new NotImplementedException(); /// public bool IsTemporary { get; private set; } ///