Package-level declarations
Types
Utility class to convert between Kotlin and Java reflection objects.
Encapsulates a successful outcome or a failure.
Properties
Functions
Converts this JEmoji Emoji into a JDA UnicodeEmoji.
Awaits the completion of this RestAction and wraps it in a Result.
Awaits the completion of this RestAction and returns null
.
Awaits the completion of this RestAction, returns null
if one of the provided error responses was thrown.
Awaits the completion of this RestAction.
Returns null
if the element already exists
Deletes the message after the specified delay.
Deletes the original message using the hook after the specified delay.
Finds all annotations of type A from the annotated element.
Finds all annotations meta-annotated with A from the annotated element.
Finds a single annotation of type A from the annotated element.
Finds all annotations from the annotated element.
Finds all annotations from the annotated element.
Computes the missing permissions from the specified permission holder, If you plan on showing them, be sure to use DefaultMessages.getPermission
Dismisses the encapsulated error response and runs the given block if it corresponds to an ignored response.
Returns true
if this element is annotated with annotationType.
Returns true
if this element is annotated with A.
Returns true
if this element is annotated with annotationType.
Dismisses the encapsulated exception if it corresponds to an ignored exception.
Dismisses the encapsulated error response if it corresponds to an ignored response.
Dismisses the encapsulated exception if it corresponds to an predicate.
Lazily converts the supplied Emoji into a JDA UnicodeEmoji.
Creates a CoroutineScope with incremental thread naming, uses getDefaultScope under the hood.
Runs the given block if the result is an error response.
Runs the given block if the result is the specified error response.
Runs the given block if the result is an ErrorResponseException.
Returns null
if the element already exists
Queues this REST action while ignoring the provided error responses.
Reads a resource relative from the calling class.
Reads a resource relative as a string from the calling class.
Maps the encapsulated error response using the given function block if it corresponds to an ignored response.
Configures refill that does refill of tokens in greedy manner, it will try to add the tokens to bucket as soon as possible.
Configures refill that does refill of tokens in intervally manner.
Configures refill that does refill of tokens in intervally manner. "Intervally" in opposite to "greedy" will wait until whole period will be elapsed before regenerate tokens.
Retrieves a Ban of the provided UserSnowflake, or null
if the user is not banned.
Retrieves an Entitlement from the provided ID, see JDA.retrieveEntitlementById for more details.
Retrieves a sticker from the provided ID, see JDA.retrieveSticker for more details.
Retrieves a thread by ID.
Retrieves a thread by ID.
Retrieves the Vanity Invite meta-data for this guild, or null
if the vanity code is null
or when a INVITE_CODE_INVALID
error response was caught.
Retrieves a Webhook from the provided ID, see JDA.retrieveWebhookById for more details.
Encapsulates the result of the specified function block and dismisses error responses that corresponds to an ignored response, making the Result a success.
Runs the specified function block and dismisses error responses that corresponds to an ignored response.
Runs the specified function block and returns null
on error responses that corresponds to an ignored response.
The minimum and maximum amount of values a user can select.
Temporarily suppresses message content intent warnings
Creates a TypeReference of type T.
Reads a resource relative from the calling class.