Interface DialogResponseView


@Experimental @NonExtendable public interface DialogResponseView
A view for a possible response to a dialog. There are no guarantees that this is an actual response to a dialog form. It is on the plugin to validate that the response is valid.
  • Method Details

    • payload

      @Contract(pure=true) BinaryTagHolder payload()
      Gets the raw payload of the response.
      Returns:
      the raw payload
    • getText

      @Contract(pure=true) @Nullable String getText(String key)
      Gets a text value at a key.
      Parameters:
      key - the key
      Returns:
      the value (or null if it doesn't exist)
    • getBoolean

      @Contract(pure=true) @Nullable Boolean getBoolean(String key)
      Gets a boolean value at a key.
      Parameters:
      key - the key
      Returns:
      the value (or null if it doesn't exist)
    • getFloat

      @Contract(pure=true) @Nullable Float getFloat(String key)
      Gets a float value at a key.
      Parameters:
      key - the key
      Returns:
      the value (or null if it doesn't exist)