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:
  • Constructor Details

    • ReplyConfig

      public ReplyConfig()

      Constructs a new InteractionDefinition.ReplyConfig using the following default values:

      • ephemeral: false
      • keepComponents: true
      • keepSelections: true
      • editReply: true
    • ReplyConfig

      public ReplyConfig(ReplyConfig replyConfig)
      Constructs a new ReplyConfig.
      Parameters:
      replyConfig - the ReplyConfig to represent
    • ReplyConfig

      public ReplyConfig(boolean ephemeral, boolean keepComponents, boolean keepSelections, boolean editReply)
      Creates an instance of a ReplyConfig record class.
      Parameters:
      ephemeral - the value for the ephemeral record component
      keepComponents - the value for the keepComponents record component
      keepSelections - the value for the keepSelections record component
      editReply - the value for the editReply record component
  • Method Details

    • of

      Constructs a new ReplyConfig after the given Consumer modified the InteractionDefinition.ReplyConfig.Builder.
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • ephemeral

      public boolean ephemeral()
      Returns the value of the ephemeral record component.
      Returns:
      the value of the ephemeral record component
    • keepComponents

      public boolean keepComponents()
      Returns the value of the keepComponents record component.
      Returns:
      the value of the keepComponents record component
    • keepSelections

      public boolean keepSelections()
      Returns the value of the keepSelections record component.
      Returns:
      the value of the keepSelections record component
    • editReply

      public boolean editReply()
      Returns the value of the editReply record component.
      Returns:
      the value of the editReply record component