Package discord4j.rest.interaction
Components used to work with Discord interactions feature.
-
Interface Summary Interface Description ApplicationCommandDefinition Represents an application command that can be tested against incoming interactions and to build a response sequence.DirectInteraction AnRestInteraction
originated from a DM channel, available for global commands and users that share a guild with a bot associated with this application.GuildInteraction AnRestInteraction
originated from a guild, giving access to specific guild ID and interaction member data.InteractionHandler An interaction handler is responsible for providing an initial response and followup for incoming interactions.InteractionMember A member that initiated a specific interaction.InteractionResponse A handler for common operations related to an interaction followup response.Interactions.ReactorNettyServerHandler An alias for a Reactor Netty server route.InteractionValidator Implement to validate interactionsRestInteraction A single interaction coming from Discord. -
Class Summary Class Description FollowupInteractionHandler An interaction handler that can have an additional asynchronous sequence for followup actions usingFollowupInteractionHandler.withFollowup(Function)
.GlobalCommandRegistrar A simple way to register a set of application command definitions globally.GuildCommandRegistrar A simple way to register a set of application command definitions to guilds.InteractionHandlerSpec An immutable builder for creating anRestInteraction
handler function, capable of handling guild and direct message interactions.Interactions An entry point to build and process Discord interactions.TweetNaclFastInteractionValidator