Package net.dv8tion.jda.core.utils
Package which contains all utilities for the JDA library.
These are used by JDA itself and can also be useful for the library consumer!
List of utilities:
IOUtil
Allows to read from files (use case: sending files)MiscUtil
Various operations that don't have specific utility classes yet, mostly internals that are accessible from JDA entitiesPermissionUtil
Focused all around thePermissions enum
, used to check whether a certain entity has case-by-case permissionsWidgetUtil
This is not bound to a JDA instance and can view theWidget
for a specified Guild. (by id)
-
Interface Summary Interface Description CacheConsumer IOConsumer<T> IOFunction<T,R> Procedure<T> SessionController Controls states and behaviour of one or multipleJDA
instances.SessionController.SessionConnectNode Represents a WebSocketClient request to start a session. -
Class Summary Class Description IOUtil MiscUtil PermissionUtil Promise<T> SessionControllerAdapter WidgetUtil The WidgetUtil is a class for interacting with various facets of Discord's guild widgetsWidgetUtil.Widget WidgetUtil.Widget.Member WidgetUtil.Widget.VoiceChannel WidgetUtil.Widget.VoiceState -
Enum Summary Enum Description WidgetUtil.BannerType Represents the available banner types
Each of these has a different appearance:WidgetUtil.WidgetTheme Represents the color scheme of the widget
These color themes match Discord's dark and light themes