Struct ChatMuteData
A chat mute as one row stores it: on an account, or on a single character.
public readonly struct ChatMuteData
- Inherited Members
Remarks
Expiry is computed, never stored. A mute whose instant has passed stops applying without anything clearing the row, so there is no sweep to fall behind and no window where a lapsed mute still silences a player because a job has not run yet.
Constructors
ChatMuteData(bool, DateTime?, string?, string?)
Creates a mute record.
public ChatMuteData(bool muted, DateTime? mutedUntilUtc, string? mutedBy, string? reason)
Parameters
Fields
Muted
Whether a mute is set.
public readonly bool Muted
Field Value
MutedBy
Operator account that applied the mute.
public readonly string? MutedBy
Field Value
MutedUntilUtc
When the mute lifts (UTC), or null for a mute with no end.
public readonly DateTime? MutedUntilUtc
Field Value
Reason
The reason recorded with the mute.
public readonly string? Reason
Field Value
Methods
IsActiveAt(DateTime)
True when the mute is set and has not yet lifted at utcNow.
public bool IsActiveAt(DateTime utcNow)
Parameters
utcNowDateTime