Class InteractionHandlerSpec

java.lang.Object
discord4j.rest.interaction.InteractionHandlerSpec

@Experimental public final class InteractionHandlerSpec extends Object
An immutable builder for creating an RestInteraction handler function, capable of handling guild and direct message interactions. Configurable instances can be acquired through Interactions.createHandler() and are built using build(), yielding a Function that can be used in methods such as Interactions.onGlobalCommand(ApplicationCommandRequest, Function).