Class SecurityIncidentActions

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

public class SecurityIncidentActions extends Object
The active security incident actions in a Guild.

Security incidents are used to temporarily disable features for the purpose of moderation.

See Also:
  • Method Details

    • getInvitesDisabledUntil

      @Nullable public OffsetDateTime getInvitesDisabledUntil()
      The time until when invites are paused.
      Returns:
      The time until invites are paused, or null if unpaused
    • getDirectMessagesDisabledUntil

      @Nullable public OffsetDateTime getDirectMessagesDisabledUntil()
      The time until when direct messages are paused.
      Returns:
      The time until direct messages are paused, or null if unpaused
    • disabled

      @Nonnull public static SecurityIncidentActions disabled()
      Incidents state, which disables all active security incidents.
      The resulting object is used with Guild.modifySecurityIncidents(SecurityIncidentActions) to update the active incidents of the guild.
      Returns:
      The new security incidents
    • enabled

      @Nonnull public static SecurityIncidentActions enabled(@Nullable OffsetDateTime invitesDisabledUntil, @Nullable OffsetDateTime directMessagesDisabledUntil)
      Incidents state, which enables security incidents based on the provided deadlines.
      The resulting object is used with Guild.modifySecurityIncidents(SecurityIncidentActions) to update the active incidents of the guild.
      Parameters:
      invitesDisabledUntil - The time until invites are paused
      directMessagesDisabledUntil - The time until direct messages are paused
      Returns:
      The new security incidents
    • hashCode

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

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

      public String toString()
      Overrides:
      toString in class Object