Skip to content

Commit

Permalink
feat: add raid and dm_spam detected to incident data
Browse files Browse the repository at this point in the history
  • Loading branch information
Lulalaby committed Apr 26, 2024
1 parent cd6d103 commit fa61325
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions DisCatSharp/Entities/Guild/IncidentsData.cs
Expand Up @@ -9,17 +9,28 @@ namespace DisCatSharp.Entities;
/// </summary>
public class IncidentsData : ObservableApiObject
{
/// <summary>
/// Gets until when direct messages are disabled.
/// </summary>
[JsonProperty("dms_disabled_until", NullValueHandling = NullValueHandling.Include)]
public DateTimeOffset? DmsDisabledUntil { get; internal set; }

/// <summary>
/// Gets until when invites are disabled.
/// </summary>
[JsonProperty("invites_disabled_until", NullValueHandling = NullValueHandling.Include)]
public DateTimeOffset? InvitesDisabledUntil { get; internal set; }

/// <summary>
/// Gets until when direct messages are disabled.
/// Gets when the dm spam was detected at.
/// </summary>
[JsonProperty("dms_disabled_until", NullValueHandling = NullValueHandling.Include)]
public DateTimeOffset? DmsDisabledUntil { get; internal set; }
[JsonProperty("dm_spam_detected_at", NullValueHandling = NullValueHandling.Include)]
public DateTimeOffset? DmSpamDetectedAt { get; internal set; }
/// <summary>
/// Gets when the raid was detected at.
/// </summary>
[JsonProperty("raid_detected_at", NullValueHandling = NullValueHandling.Include)]
public DateTimeOffset? RaidDetectedAt { get; internal set; }

/// <summary>
/// Constructs a new <see cref="IncidentsData"/> object.
Expand Down

0 comments on commit fa61325

Please sign in to comment.