Table of Contents

Struct ChatMuteData

Namespace
FishMMO.Database.Data
Assembly
FishMMO-DB.dll

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

muted bool
mutedUntilUtc DateTime?
mutedBy string
reason string

Fields

Muted

Whether a mute is set.

public readonly bool Muted

Field Value

bool

MutedBy

Operator account that applied the mute.

public readonly string? MutedBy

Field Value

string

MutedUntilUtc

When the mute lifts (UTC), or null for a mute with no end.

public readonly DateTime? MutedUntilUtc

Field Value

DateTime?

Reason

The reason recorded with the mute.

public readonly string? Reason

Field Value

string

Methods

IsActiveAt(DateTime)

True when the mute is set and has not yet lifted at utcNow.

public bool IsActiveAt(DateTime utcNow)

Parameters

utcNow DateTime

Returns

bool