Table of Contents

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

TimeSpan

IsPermanent

Returns true if the punishment will never expire, not considering Forgiven.

[JsonIgnore]
bool IsPermanent { get; set; }

Property Value

bool

Remarks

This is indicated by a negative Duration.

Exceptions

ArgumentException

Thrown if you set to false.