Record Class InteractionDefinition.ReplyConfig
java.lang.Object
java.lang.Record
com.github.kaktushose.jda.commands.definitions.interactions.InteractionDefinition.ReplyConfig
- Enclosing interface:
InteractionDefinition
public static record InteractionDefinition.ReplyConfig(boolean ephemeral, boolean keepComponents, boolean editReply)
extends Record
Stores the configuration values for sending replies. This acts as a representation of
ReplyConfig
.- See Also:
-
Constructor Summary
ConstructorDescriptionConstructs a newInteractionDefinition.ReplyConfig
using the following default values:ReplyConfig
(boolean ephemeral, boolean keepComponents, boolean editReply) Creates an instance of aReplyConfig
record class.ReplyConfig
(ReplyConfig replyConfig) Constructs a new ReplyConfig. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the value of theeditReply
record component.boolean
Returns the value of theephemeral
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
Returns the value of thekeepComponents
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ReplyConfig
public ReplyConfig()Constructs a new
InteractionDefinition.ReplyConfig
using the following default values:- ephemeral:
false
- keepComponents:
true
- editReply:
true
- ephemeral:
-
ReplyConfig
Constructs a new ReplyConfig.- Parameters:
replyConfig
- theReplyConfig
to represent
-
ReplyConfig
public ReplyConfig(boolean ephemeral, boolean keepComponents, boolean editReply) Creates an instance of aReplyConfig
record class.- Parameters:
ephemeral
- the value for theephemeral
record componentkeepComponents
- the value for thekeepComponents
record componenteditReply
- the value for theeditReply
record component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with thecompare
method from their corresponding wrapper classes. -
ephemeral
public boolean ephemeral()Returns the value of theephemeral
record component.- Returns:
- the value of the
ephemeral
record component
-
keepComponents
public boolean keepComponents()Returns the value of thekeepComponents
record component.- Returns:
- the value of the
keepComponents
record component
-
editReply
public boolean editReply()Returns the value of theeditReply
record component.- Returns:
- the value of the
editReply
record component
-