Package which contains all utilities for the JDA library. These are used by JDA itself and can also be useful for the library user!
List of utilities:
Various operations that don't have specific utility classes yet, mostly internals that are accessible from JDA entities
This is not bound to a JDA instance and can view the
Widgetfor a specified Guild. (by id)
Parser for Discord markdown that can either escape or strip markdown from a string
Special handler for session (re-)connects and global rate-limits
Useful time conversion methods related to Discord
Interface Summary Interface Description AllowedMentions<R>Represents the operations used to whitelist/blacklist mentions. ChunkingFilterFilter function for member chunking of guilds. ClosableIterator<T>Iterator holding a resource that must be free'd by the consumer. IOBiConsumer<T,R> IOConsumer<T> IOFunction<T,R> MemberCachePolicyPolicy which decides whether a member (and respective user) should be kept in cache. Procedure<T> SessionControllerControls states and behaviour of one or multiple
SessionController.SessionConnectNodeRepresents a WebSocketClient request to start a session.
Class Summary Class Description ConcurrentSessionControllerImplementation of
SessionControllerwhich respects concurrent shard login.
LockIterator<T>Simple implementation of a
ClosableIteratorthat uses a lock.
MarkdownSanitizerImplements and algorithm that can strip or replace markdown in any supplied string. MarkdownUtil MiscUtil Result<T>Represents a computation or task result. SessionController.ShardedGatewayPOJO containing the gateway endpoint and recommended shard total for a shard manager. SessionControllerAdapter TimestampUtility class representing Discord Markdown timestamps. TimeUtil WidgetUtilThe WidgetUtil is a class for interacting with various facets of Discord's guild widgets WidgetUtil.Widget WidgetUtil.Widget.Member WidgetUtil.Widget.VoiceChannel WidgetUtil.Widget.VoiceState
Enum Summary Enum Description AttachmentOptionOptions that can be applied to attachments in
CompressionCompression algorithms that can be used with JDA. MarkdownSanitizer.SanitizationStrategy TimeFormatUtility enum used to provide different markdown styles for timestamps. WidgetUtil.BannerTypeRepresents the available banner types
Each of these has a different appearance:
WidgetUtil.WidgetThemeRepresents the color scheme of the widget
These color themes match Discord's dark and light themes