Package discord4j.rest.interaction
@NonNullApi
package discord4j.rest.interaction
Components used to work with Discord interactions feature.
-
ClassDescriptionRepresents an application command that can be tested against incoming interactions and to build a response sequence.An
RestInteraction
originated from a DM channel, available for global commands and users that share a guild with a bot associated with this application.An interaction handler that can have an additional asynchronous sequence for followup actions usingFollowupInteractionHandler.withFollowup(Function)
.A simple way to register a set of application command definitions globally.A simple way to register a set of application command definitions to guilds.AnRestInteraction
originated from a guild, giving access to specific guild ID and interaction member data.An interaction handler is responsible for providing an initial response and followup for incoming interactions.An immutable builder for creating anRestInteraction
handler function, capable of handling guild and direct message interactions.A member that initiated a specific interaction.A handler for common operations related to an interaction followup response.An entry point to build and process Discord interactions.An alias for a Reactor Netty server route.Implement to validate interactionsA single interaction coming from Discord.