fr.alexpado.jda.interactions.responses.SlashResponse Maven / Gradle / Ivy
package fr.alexpado.jda.interactions.responses;
import fr.alexpado.jda.interactions.interfaces.interactions.slash.SlashInteractionTarget;
import net.dv8tion.jda.api.utils.messages.MessageRequest;
import java.util.function.Consumer;
/**
* Interface representing the default response for a {@link SlashInteractionTarget}.
*/
public interface SlashResponse {
/**
* Retrieve the {@link MessageRequest} {@link Consumer} that should set the response content.
*
* @return A {@link MessageRequest} {@link Consumer}
*/
Consumer> getHandler();
/**
* Check if this {@link SlashResponse} is ephemeral (ie: Only shown to the user who interacted).
*
* @return True if ephemeral, false otherwise.
*/
boolean isEphemeral();
}