Class ModalMapping

java.lang.Object
net.dv8tion.jda.api.interactions.modals.ModalMapping

public class ModalMapping extends Object
ID/Value pair for a ModalInteractionEvent.
See Also:
  • Constructor Details

    • ModalMapping

      public ModalMapping(DataObject object)
  • Method Details

    • getId

      @Nonnull public String getId()
      The custom id of this component
      Returns:
      The custom id of this component
    • getType

      @Nonnull public Component.Type getType()
      The Type of this component
      Returns:
      Type of this component
    • getAsString

      @Nonnull public String getAsString()
      The String representation of this component.

      For TextInputs, this returns what the User typed in it.

      Returns:
      The String representation of this component.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object