Class AutoModResponseImpl
java.lang.Object
net.dv8tion.jda.internal.entities.automod.AutoModResponseImpl
- All Implemented Interfaces:
AutoModResponse
,SerializableData
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.dv8tion.jda.api.entities.automod.AutoModResponse
AutoModResponse.Type
-
Field Summary
Fields inherited from interface net.dv8tion.jda.api.entities.automod.AutoModResponse
MAX_CUSTOM_MESSAGE_LENGTH
-
Constructor Summary
ConstructorsConstructorDescriptionAutoModResponseImpl
(AutoModResponse.Type type, String customMessage) AutoModResponseImpl
(AutoModResponse.Type type, Duration duration) AutoModResponseImpl
(AutoModResponse.Type type, GuildMessageChannel channel) AutoModResponseImpl
(Guild guild, DataObject json) -
Method Summary
Modifier and TypeMethodDescriptionboolean
The channel to send the alert message to.The custom message to send to the user.The duration to timeout the user for.getType()
The type of response.int
hashCode()
toData()
SerializedDataObject
for this object.
-
Constructor Details
-
AutoModResponseImpl
-
AutoModResponseImpl
-
AutoModResponseImpl
-
AutoModResponseImpl
-
AutoModResponseImpl
-
-
Method Details
-
getType
Description copied from interface:AutoModResponse
The type of response.- Specified by:
getType
in interfaceAutoModResponse
- Returns:
- The type of response
-
getChannel
Description copied from interface:AutoModResponse
The channel to send the alert message to.- Specified by:
getChannel
in interfaceAutoModResponse
- Returns:
- The channel to send the alert message to, or null if this is not a
AutoModResponse.Type.SEND_ALERT_MESSAGE
response
-
getCustomMessage
Description copied from interface:AutoModResponse
The custom message to send to the user.- Specified by:
getCustomMessage
in interfaceAutoModResponse
- Returns:
- The custom message to send to the user, or null if this is not a
AutoModResponse.Type.BLOCK_MESSAGE
response
-
getTimeoutDuration
Description copied from interface:AutoModResponse
The duration to timeout the user for.- Specified by:
getTimeoutDuration
in interfaceAutoModResponse
- Returns:
- The duration to timeout the user for, or null if this is not a
AutoModResponse.Type.TIMEOUT
response
-
toData
Description copied from interface:SerializableData
SerializedDataObject
for this object.- Specified by:
toData
in interfaceSerializableData
- Returns:
DataObject
-
hashCode
public int hashCode() -
equals
-