@@ -15,6 +15,10 @@ 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.")]
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>
@@ -22,7 +26,7 @@ namespace Discord
/// An <see cref="int"/> representing the time in seconds until this invite expires; <c>null</c> if this
/// An <see cref="int"/> representing the time in seconds until this invite expires; <c>null</c> if this
/// invite never expires.
/// invite never expires.
/// </returns>
/// </returns>
int MaxAge { get; }
int? MaxAge { get; }
/// <summary>
/// <summary>
/// Gets the max number of uses this invite may have.
/// Gets the max number of uses this invite may have.
/// </summary>
/// </summary>
@@ -30,20 +34,20 @@ namespace Discord
/// An <see cref="int"/> representing the number of uses this invite may be accepted until it is removed
/// An <see cref="int"/> representing the number of uses this invite may be accepted until it is removed
/// from the guild; <c>null</c> if none is set.
/// from the guild; <c>null</c> if none is set.
/// </returns>
/// </returns>
int MaxUses { get; }
int? MaxUses { get; }
/// <summary>
/// <summary>
/// Gets the number of times this invite has been used.
/// Gets the number of times this invite has been used.
/// </summary>
/// </summary>
/// <returns>
/// <returns>
/// An <see cref="int"/> representing the number of times this invite has been used.
/// An <see cref="int"/> representing the number of times this invite has been used.
/// </returns>
/// </returns>
int Uses { get; }
int? Uses { get; }
/// <summary>
/// <summary>
/// Gets when this invite was created.
/// Gets when this invite was created.
/// </summary>
/// </summary>
/// <returns>
/// <returns>
/// A <see cref="DateTimeOffset"/> representing the time of which the invite was first created.
/// A <see cref="DateTimeOffset"/> representing the time of which the invite was first created.
/// </returns>
/// </returns>
DateTimeOffset CreatedAt { get; }
DateTimeOffset? CreatedAt { get; }
}
}
}
}