Record Class InteractionDefinition.ReplyConfig
java.lang.Object
java.lang.Record
io.github.kaktushose.jdac.definitions.interactions.InteractionDefinition.ReplyConfig
- Enclosing interface:
InteractionDefinition
public static record InteractionDefinition.ReplyConfig(boolean ephemeral, boolean keepComponents, boolean keepSelections, boolean editReply)
extends Record
Stores the configuration values for sending replies. This acts as a representation of
ReplyConfig.- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newInteractionDefinition.ReplyConfigusing the following default values:ReplyConfig(boolean ephemeral, boolean keepComponents, boolean keepSelections, boolean editReply) Creates an instance of aReplyConfigrecord class.ReplyConfig(ReplyConfig replyConfig) Constructs a new ReplyConfig. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theeditReplyrecord component.booleanReturns the value of theephemeralrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thekeepComponentsrecord component.booleanReturns the value of thekeepSelectionsrecord component.of(Consumer<InteractionDefinition.ReplyConfig.Builder> callback) Constructs a new ReplyConfig after the givenConsumermodified theInteractionDefinition.ReplyConfig.Builder.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ReplyConfig
public ReplyConfig()Constructs a new
InteractionDefinition.ReplyConfigusing the following default values:- ephemeral:
false - keepComponents:
true - keepSelections:
true - editReply:
true
- ephemeral:
-
ReplyConfig
Constructs a new ReplyConfig.- Parameters:
replyConfig- theReplyConfigto represent
-
ReplyConfig
public ReplyConfig(boolean ephemeral, boolean keepComponents, boolean keepSelections, boolean editReply) Creates an instance of aReplyConfigrecord class.- Parameters:
ephemeral- the value for theephemeralrecord componentkeepComponents- the value for thekeepComponentsrecord componentkeepSelections- the value for thekeepSelectionsrecord componenteditReply- the value for theeditReplyrecord component
-
-
Method Details
-
of
public static InteractionDefinition.ReplyConfig of(Consumer<InteractionDefinition.ReplyConfig.Builder> callback) Constructs a new ReplyConfig after the givenConsumermodified theInteractionDefinition.ReplyConfig.Builder. -
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 thecomparemethod from their corresponding wrapper classes. -
ephemeral
public boolean ephemeral()Returns the value of theephemeralrecord component.- Returns:
- the value of the
ephemeralrecord component
-
keepComponents
public boolean keepComponents()Returns the value of thekeepComponentsrecord component.- Returns:
- the value of the
keepComponentsrecord component
-
keepSelections
public boolean keepSelections()Returns the value of thekeepSelectionsrecord component.- Returns:
- the value of the
keepSelectionsrecord component
-
editReply
public boolean editReply()Returns the value of theeditReplyrecord component.- Returns:
- the value of the
editReplyrecord component
-