Interface IDurationModerationEntry
- Namespace
- Uncreated.Warfare.Moderation
- Assembly
- Uncreated.Warfare.dll
public interface IDurationModerationEntry : IModerationEntry
- Inherited Members
Properties
Duration
Length of the punishment, negative implies permanent.
[JsonPropertyName("duration")]
TimeSpan Duration { get; set; }
Property Value
IsPermanent
Returns true if the punishment will never expire, not considering Forgiven.
[JsonIgnore]
bool IsPermanent { get; set; }
Property Value
Remarks
This is indicated by a negative Duration.
Exceptions
- ArgumentException
Thrown if you set to false.