Interface ModalInteraction

    • Method Detail

      • getCustomId

        java.lang.String getCustomId()
        Get the custom id of the select menu.
        Returns:
        The custom ID.
      • getComponents

        java.util.List<HighLevelComponent> getComponents()
        Get the components of the modal.
        Returns:
        The components.
      • getTextInputValues

        java.util.List<java.lang.String> getTextInputValues()
        Gets the values of each text input. This is a shorthand method to avoid iterating the nested components by yourself.
        Returns:
        The values of the text input components.
      • getTextInputValueByCustomId

        java.util.Optional<java.lang.String> getTextInputValueByCustomId​(java.lang.String customId)
        Get the value of a text input by its custom id. This is a shorthand method to avoid iterating the nested components by yourself.
        Parameters:
        customId - The custom ID of the component.
        Returns:
        The value of the text input component with the id.