Class SecurityIncidentDetections

java.lang.Object
net.dv8tion.jda.api.entities.guild.SecurityIncidentDetections

public class SecurityIncidentDetections extends Object
Detected security incidents of a Guild.
  • Field Details

  • Constructor Details

    • SecurityIncidentDetections

      public SecurityIncidentDetections(long dmSpamDetectedAt, long raidDetectedAt)
  • Method Details

    • getTimeDetectedDmSpam

      @Nullable public OffsetDateTime getTimeDetectedDmSpam()
      Timestamp when Discord detected spam in direct messages.
      Returns:
      OffsetDateTime of the detection, or null when there is no current detection
    • getTimeDetectedRaid

      @Nullable public OffsetDateTime getTimeDetectedRaid()
      Timestamp when Discord detected an ongoing raid.
      Returns:
      OffsetDateTime of the detection, or null when there is no current detection
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object