Package-level declarations

Types

Link copied to clipboard

Exception thrown when retrieving a channel by ID, but the type is incorrect.

Functions

Link copied to clipboard

Same as Guild.retrieveAutoModRuleById, but returns null if the rule does not exist.

Link copied to clipboard

Retrieves a Ban of the provided UserSnowflake, or null if the user is not banned.

Link copied to clipboard
Link copied to clipboard
suspend fun JDA.retrieveEntitlementByIdOrNull(entitlementId: Long): Entitlement?
suspend fun JDA.retrieveEntitlementByIdOrNull(entitlementId: String): Entitlement?

Retrieves an Entitlement from the provided ID, see JDA.retrieveEntitlementById for more details.

Link copied to clipboard
suspend fun Guild.retrieveMemberByIdOrNull(userId: Long, useCache: Boolean = true): Member?
suspend fun Guild.retrieveMemberByIdOrNull(userId: String, useCache: Boolean = true): Member?

Retrieves a Member with the provided ID.

Link copied to clipboard
suspend fun Guild.retrieveMemberOrNull(user: UserSnowflake, useCache: Boolean = true): Member?

Retrieves a Member with the provided User.

Link copied to clipboard
Link copied to clipboard

Retrieves a sticker from the provided ID, see JDA.retrieveSticker for more details.

Link copied to clipboard
Link copied to clipboard

Retrieves a thread by ID.

Link copied to clipboard
suspend fun JDA.retrieveUserByIdOrNull(userId: Long, useCache: Boolean = true): User?
suspend fun JDA.retrieveUserByIdOrNull(userId: String, useCache: Boolean = true): User?

Retrieves a User with the provided ID.

Link copied to clipboard

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.

Link copied to clipboard
suspend fun JDA.retrieveWebhookByIdOrNull(webhookId: Long): Webhook?
suspend fun JDA.retrieveWebhookByIdOrNull(webhookId: String): Webhook?

Retrieves a Webhook from the provided ID, see JDA.retrieveWebhookById for more details.