Class GuildUpdateSecurityIncidentDetectionsEvent

All Implemented Interfaces:
GenericEvent, UpdateEvent<Guild, SecurityIncidentDetections>

public class GuildUpdateSecurityIncidentDetectionsEvent extends GenericGuildUpdateEvent<SecurityIncidentDetections>
Indicates that the SecurityIncidentDetections of a Guild changed.

Can be used to detect when Discord detects a raid or spammers in direct messages.

Identifier: security_incident_detections

  • Field Details

  • Constructor Details

    • GuildUpdateSecurityIncidentDetectionsEvent

      public GuildUpdateSecurityIncidentDetectionsEvent(@Nonnull JDA api, long responseNumber, @Nonnull Guild guild, @Nonnull SecurityIncidentDetections previous)
  • Method Details

    • getOldSecurityIncidentDetections

      @Nonnull public SecurityIncidentDetections getOldSecurityIncidentDetections()
      The old security incident actions, or null if disabled.
      Returns:
      The old incident actions
    • getNewSecurityIncidentDetections

      @Nonnull public SecurityIncidentDetections getNewSecurityIncidentDetections()
      The new security incident actions, or null if disabled.
      Returns:
      The new incident actions