Class SecurityIncidentActions
java.lang.Object
net.dv8tion.jda.api.entities.guild.SecurityIncidentActions
The active security incident actions in a
Guild
.
Security incidents are used to temporarily disable features for the purpose of moderation.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic SecurityIncidentActions
disabled()
Incidents state, which disables all active security incidents.static SecurityIncidentActions
enabled
(OffsetDateTime invitesDisabledUntil, OffsetDateTime directMessagesDisabledUntil) Incidents state, which enables security incidents based on the provided deadlines.boolean
The time until when direct messages are paused.The time until when invites are paused.int
hashCode()
toString()
-
Method Details
-
getInvitesDisabledUntil
The time until when invites are paused.- Returns:
- The time until invites are paused, or null if unpaused
-
getDirectMessagesDisabledUntil
The time until when direct messages are paused.- Returns:
- The time until direct messages are paused, or null if unpaused
-
disabled
Incidents state, which disables all active security incidents.
The resulting object is used withGuild.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 withGuild.modifySecurityIncidents(SecurityIncidentActions)
to update the active incidents of the guild.- Parameters:
invitesDisabledUntil
- The time until invites are pauseddirectMessagesDisabledUntil
- The time until direct messages are paused- Returns:
- The new security incidents
-
hashCode
public int hashCode() -
equals
-
toString
-