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

    Constructors
    Constructor
    Description
    Constructs a new InteractionDefinition.ReplyConfig using the following default values:
    ReplyConfig(boolean ephemeral, boolean keepComponents, boolean editReply)
    Creates an instance of a ReplyConfig record class.
    ReplyConfig(ReplyConfig replyConfig)
    Constructs a new ReplyConfig.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns the value of the editReply record component.
    boolean
    Returns the value of the ephemeral record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    boolean
    Returns the value of the keepComponents record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ReplyConfig

      public ReplyConfig()

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

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

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

      public ReplyConfig(boolean ephemeral, boolean keepComponents, 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
      editReply - the value for the editReply record component
  • Method Details

    • 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
    • editReply

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