CacheEntitySupplier
EntitySupplier that uses a DataCache to resolve entities.
Getting existing entities should not throw any RequestException unless specified by the configured cache.
The supplier might not be able to return entities independent of their actual existence, their presence depends on incoming events from the Gateway and how the cache is set up to store entities.
Returned flows without entities will not throw an EntityNotFoundException if none are presented like other getX
functions. Instead, the flow will be empty.
Functions
Requests an AutoModerationRule by its id.
Requests an AutoModerationRule by its id. Returns null
if it wasn't found.
Requests to get all AutoModerationRules currently configured for the Guild with the given guildId.
Requests guilds this bot is known to be part of.
Requests the GuildEmoji with the emojiId in the Guild wit the given guildId.
Requests the GuildEmoji with the emojiId in the Guild wit the given guildId, returns null when the emoji isn't present.
Requests the guild emojis of the Guild with the given guildId.
Requests to get all Entitlements for the Application with the given applicationId.
Requests a followup message for an interaction response.
Requests a followup message for an interaction response. Returns null
if the followup message isn't present.
Requests the GlobalApplicationCommand with the given id as type T.
Requests the GuildApplicationCommand with the given id as type T, returns null if the command application isn't present or if the channel is not of type T.
Requests the GlobalApplicationCommand with the given id as type T.
Requests the GlobalApplicationCommand with the given id as type T, returns null if the command application isn't present or if the channel is not of type T.
Requests the GuildApplicationCommand with the given id as type T.
Requests the GuildApplicationCommand with the given id as type T, returns null if the command application isn't present or if the channel is not of type T.
Requests the preview of the guild matching the guildId. If the bot is not in the guild, then the guild must be lurkable.
Requests the preview of the guild matching the guildId. If the bot is not in the guild, then the guild must be lurkable. Returns null
if the preview was not found.
Requests to get the widget of a Guild with the given id, returns null if the GuildWidget isn't present.
Requests the Message with the given messageId in the MessageChannel with the given channelId.
Requests the User this bot represents, returns null when the user isn't present.
Requests a Subscription by its id.
Requests a Subscription by its id. Returns null
if it wasn't found.
Requests to get all Subscriptions containing the Sku with the given skuId.