All Classes and Interfaces
Class
Description
A class for holding the allowed_mentions object with an built-in factory for default values.
A builder for creating
AllowedMentions objects.An allowed mentions type, grouped into role mentions, user mentions and everyone mentions (includes @everyone
and @here).
Represents an application command that can be tested against incoming interactions and to build a response sequence.
An implementation of
GlobalRateLimiter that uses a RateLimitOperator coordinate requests, injecting
an additional delay if a source trips the limiter early through BucketGlobalRateLimiter.rateLimitFor(Duration).Used to access the appropriate
RequestStream according to the bucket
that requests for the stream fall into.Exception that contains information about a failed request containing HTTP response data.
An adapted request definition from an original
DiscordWebRequest.An HTTP response encapsulating status, headers and accessors to the response body for consumption.
A
ResponseFunction that can join multiple ResponseFunction instances.Facilitates the routing of
DiscordWebRequest instances to the proper RequestStream according to
the bucket in which the request falls.An
RestInteraction originated from a DM channel, available for global commands and users that share a guild
with a bot associated with this application.Thrown when a REST request is discarded because of a queue overflow.
Reactor Netty based HTTP client dedicated to Discord REST API requests.
Template encoding all the needed information to make an HTTP request to Discord.
Contract to handle a
Mono of ClientResponse after a network exchange is done.Read a response without a body.
A
ResponseFunction that is able to transform an error sequence with a HTTP 404 status, into an empty
sequence.Write a request without a body.
Defines the strategies to request and response body conversion.
A mutable builder for creating an
ExchangeStrategiesRead a response as a
String as a catch-all, unless the given response type is ErrorResponse, in which
case it will attempt to store the response into the ErrorResponse body field.An interaction handler that can have an additional asynchronous sequence for followup actions using
FollowupInteractionHandler.withFollowup(Function).Write to a request from a
String using reactor-netty's HttpClient.RequestSender.send(Publisher).A simple way to register a set of application command definitions globally.
Used to prevent requests from being sent while the bot is
globally rate limited.
A simple way to register a set of application command definitions to guilds.
An
RestInteraction originated from a guild, giving access to specific guild ID and interaction member data.Represents a Discord image.
The format of an image.
An interaction handler is responsible for providing an initial response and followup for incoming interactions.
An immutable builder for creating an
RestInteraction 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 interactions
Read a response into JSON and convert to an Object of type
<Res> using Jackson.Write to a request from an
Object to a JSON String using Jackson.A simple multi-valued map that wraps a
LinkedHashMap with LinkedList to store multiple values.Write to a request from a
Consumer<HttpClientRequest.Form> using reactor-netty's HttpClient.RequestSender.sendForm(java.util.function.BiConsumer).A utility class for the sorting of
RestRole.Permissions are a way to limit and grant certain abilities to users.
An immutable, specialized
Set<Permission>.The retry function used for reading and completing HTTP requests.
A mapper between a
HttpClientResponse and a Duration representing a delay due to rate limiting.Strategy for reading from a
HttpClientResponse and decoding the stream of bytes
to an Object of type <Res>.Abstraction for a REST request queue.
Factory to create
RequestQueue instances.A transformation function used while processing
DiscordWebRequest objects.Represents a guild or DM channel within Discord.
An aggregation of all Discord REST API resources available.
Builder suited for creating a
RestClient.Represents a guild emoji entity in Discord.
Represents a guild entity in Discord.
Represents a guild template entity in Discord.
A single interaction coming from Discord.
Represents a code that can be used to add a user to a guild.
Represents a user (bot or normal) that is member of a specific guild.
Represents a message within Discord.
A set of resources required for key Discord4J features like entity manipulation and API communication.
Roles represent a set of permissions, unique per guild, attached to a group of users.
Represents a guild scheduled event within Discord.
Represents a stage instance entity in Discord.
Represents a guild sticker entity in Discord.
Represents a user (bot or normal) entity in Discord.
Represents a webhook entity in Discord.
A
ResponseFunction that is able to transform an error sequence into a custom response.A
ResponseFunction that is able to transform an error sequence into a retrying one.Provides a mapping between a Discord API endpoint and its response type.
A predicate that can match a given
DiscordWebRequest.Represents a connector executing
DiscordWebRequest objects against the Discord REST API.Options used to control the behavior of a
Router.A collection of
Route object definitions.Strategy for encoding an object of type
<Req> and writing the encoded stream of bytes to an HttpClientRequest.