Class PunishmentPreset
public sealed class PunishmentPreset
- Inheritance
-
PunishmentPreset
- Inherited Members
-
Constructors
PunishmentPreset()
public PunishmentPreset()
PunishmentPreset(PresetType, int, ModerationEntryType, string?)
public PunishmentPreset(PresetType type, int level, ModerationEntryType modType, string? defaultMessage)
Parameters
type PresetType
level int
modType ModerationEntryType
defaultMessage string
Properties
DefaultMessage
[JsonPropertyName("message")]
public string? DefaultMessage { get; set; }
Property Value
- string
Level
[JsonPropertyName("preset_level")]
public int Level { get; }
Property Value
- int
PrimaryDuration
[JsonPropertyName("primary_duration")]
public TimeSpan? PrimaryDuration { get; set; }
Property Value
- TimeSpan?
PrimaryModerationType
[JsonPropertyName("primary_moderation_type")]
public ModerationEntryType PrimaryModerationType { get; set; }
Property Value
- ModerationEntryType
Reputation
[JsonPropertyName("reputation")]
public double Reputation { get; set; }
Property Value
- double
SecondaryDuration
[JsonPropertyName("secondary_duration")]
public TimeSpan? SecondaryDuration { get; set; }
Property Value
- TimeSpan?
SecondaryModerationType
[JsonPropertyName("secondary_moderation_type")]
public ModerationEntryType? SecondaryModerationType { get; set; }
Property Value
- ModerationEntryType?
Type
[JsonPropertyName("preset_type")]
public PresetType Type { get; }
Property Value
- PresetType