Entity Supplier
interface EntitySupplier
Content copied to clipboard
An abstraction that allows for requesting Discord entities.
See also
Functions
getActiveThreads
Link copied to clipboard
getApplicationCommandPermissions
Link copied to clipboard
open suspend fun getApplicationCommandPermissions(applicationId: Snowflake, guildId: Snowflake, commandId: Snowflake): ApplicationCommandPermissions
Content copied to clipboard
getApplicationCommandPermissionsOrNull
Link copied to clipboard
abstract suspend fun getApplicationCommandPermissionsOrNull(applicationId: Snowflake, guildId: Snowflake, commandId: Snowflake): ApplicationCommandPermissions?
Content copied to clipboard
getChannel
Link copied to clipboard
getChannelOrNull
Link copied to clipboard
getChannelPins
Link copied to clipboard
getChannelWebhooks
Link copied to clipboard
getCurrentUserGuilds
Link copied to clipboard
abstract fun getCurrentUserGuilds(limit: Int = Int.MAX_VALUE): Flow<Guild>
Content copied to clipboard
getEmoji
Link copied to clipboard
open suspend fun getEmoji(guildId: Snowflake, emojiId: Snowflake): GuildEmoji
Content copied to clipboard
getEmojiOrNull
Link copied to clipboard
abstract suspend fun getEmojiOrNull(guildId: Snowflake, emojiId: Snowflake): GuildEmoji?
Content copied to clipboard
Requests the GuildEmoji with the emojiId in the Guild wit the given guildId, returns null when the emoji isn't present.
getEmojis
Link copied to clipboard
getGlobalApplicationCommand
Link copied to clipboard
open suspend fun getGlobalApplicationCommand(applicationId: Snowflake, commandId: Snowflake): GlobalApplicationCommand
Content copied to clipboard
getGlobalApplicationCommandOrNull
Link copied to clipboard
abstract suspend fun getGlobalApplicationCommandOrNull(applicationId: Snowflake, commandId: Snowflake): GlobalApplicationCommand?
Content copied to clipboard
getGlobalApplicationCommands
Link copied to clipboard
abstract fun getGlobalApplicationCommands(applicationId: Snowflake): Flow<GlobalApplicationCommand>
Content copied to clipboard
getGuildApplicationCommand
Link copied to clipboard
open suspend fun getGuildApplicationCommand(applicationId: Snowflake, guildId: Snowflake, commandId: Snowflake): GuildApplicationCommand
Content copied to clipboard
getGuildApplicationCommandOrNull
Link copied to clipboard
abstract suspend fun getGuildApplicationCommandOrNull(applicationId: Snowflake, guildId: Snowflake, commandId: Snowflake): GuildApplicationCommand?
Content copied to clipboard
getGuildApplicationCommandPermissions
Link copied to clipboard
abstract fun getGuildApplicationCommandPermissions(applicationId: Snowflake, guildId: Snowflake): Flow<ApplicationCommandPermissions>
Content copied to clipboard
getGuildApplicationCommands
Link copied to clipboard
abstract fun getGuildApplicationCommands(applicationId: Snowflake, guildId: Snowflake): Flow<GuildApplicationCommand>
Content copied to clipboard
getGuildBan
Link copied to clipboard
getGuildBanOrNull
Link copied to clipboard
getGuildBans
Link copied to clipboard
getGuildChannels
Link copied to clipboard
getGuildMembers
Link copied to clipboard
getGuildOrNull
Link copied to clipboard
getGuildPreview
Link copied to clipboard
getGuildPreviewOrNull
Link copied to clipboard
abstract suspend fun getGuildPreviewOrNull(guildId: Snowflake): GuildPreview?
Content copied to clipboard
getGuildRoles
Link copied to clipboard
getGuildVoiceRegions
Link copied to clipboard
getGuildWebhooks
Link copied to clipboard
getGuildWidget
Link copied to clipboard
getGuildWidgetOrNull
Link copied to clipboard
abstract suspend fun getGuildWidgetOrNull(guildId: Snowflake): GuildWidget?
Content copied to clipboard
Requests to get the widget of this guild through the strategy, returns null if the GuildWidget isn't present.
getJoinedPrivateArchivedThreads
Link copied to clipboard
abstract fun getJoinedPrivateArchivedThreads(channelId: Snowflake, before: Snowflake, limit: Int): Flow<ThreadChannel>
Content copied to clipboard
getMemberOrNull
Link copied to clipboard
getMessage
Link copied to clipboard
open suspend fun getMessage(channelId: Snowflake, messageId: Snowflake): Message
Content copied to clipboard
getMessageOrNull
Link copied to clipboard
abstract suspend fun getMessageOrNull(channelId: Snowflake, messageId: Snowflake): Message?
Content copied to clipboard
Requests the Message with the given messageId in the MessageChannel with the given channelId, returns
null
when the message isn't present.getMessagesAfter
Link copied to clipboard
getMessagesAround
Link copied to clipboard
getMessagesBefore
Link copied to clipboard
getPrivateArchivedThreads
Link copied to clipboard
abstract fun getPrivateArchivedThreads(channelId: Snowflake, before: Instant, limit: Int): Flow<ThreadChannel>
Content copied to clipboard
getPublicArchivedThreads
Link copied to clipboard
abstract fun getPublicArchivedThreads(channelId: Snowflake, before: Instant, limit: Int): Flow<ThreadChannel>
Content copied to clipboard
getRoleOrNull
Link copied to clipboard
getSelfOrNull
Link copied to clipboard
getStageInstance
Link copied to clipboard
getStageInstanceOrNull
Link copied to clipboard
abstract suspend fun getStageInstanceOrNull(channelId: Snowflake): StageInstance?
Content copied to clipboard
getTemplate
Link copied to clipboard
getTemplateOrNull
Link copied to clipboard
getTemplates
Link copied to clipboard
getThreadMembers
Link copied to clipboard
getUserOrNull
Link copied to clipboard
getWebhook
Link copied to clipboard
getWebhookOrNull
Link copied to clipboard
getWebhookWithToken
Link copied to clipboard
getWebhookWithTokenOrNull
Link copied to clipboard
Properties
Inheritors
StoreEntitySupplier
Link copied to clipboard
CacheEntitySupplier
Link copied to clipboard
RestEntitySupplier
Link copied to clipboard
Extensions
getChannelOf
Link copied to clipboard
inline suspend fun <T : Channel> EntitySupplier.getChannelOf(id: Snowflake): T
Content copied to clipboard
getChannelOfOrNull
Link copied to clipboard
inline suspend fun <T : Channel> EntitySupplier.getChannelOfOrNull(id: Snowflake): T?
Content copied to clipboard
getGlobalApplicationCommandOf
Link copied to clipboard
inline suspend fun <T : GlobalApplicationCommand> EntitySupplier.getGlobalApplicationCommandOf(applicationId: Snowflake, id: Snowflake): T
Content copied to clipboard
getGlobalApplicationCommandOfOrNull
Link copied to clipboard
inline suspend fun <T : GlobalApplicationCommand> EntitySupplier.getGlobalApplicationCommandOfOrNull(applicationId: Snowflake, id: Snowflake): T?
Content copied to clipboard
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.
getGlobalApplicationOf
Link copied to clipboard
inline suspend fun <T : GlobalApplicationCommand> EntitySupplier.getGlobalApplicationOf(applicationId: Snowflake, id: Snowflake): T
Content copied to clipboard
getGlobalApplicationOfOrNull
Link copied to clipboard
inline suspend fun <T : GlobalApplicationCommand> EntitySupplier.getGlobalApplicationOfOrNull(applicationId: Snowflake, id: Snowflake): T?
Content copied to clipboard
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.
getGuildApplicationCommandOf
Link copied to clipboard
inline suspend fun <T : GuildApplicationCommand> EntitySupplier.getGuildApplicationCommandOf(applicationId: Snowflake, guildId: Snowflake, id: Snowflake): T
Content copied to clipboard
getGuildApplicationCommandOfOrNull
Link copied to clipboard
inline suspend fun <T : GuildApplicationCommand> EntitySupplier.getGuildApplicationCommandOfOrNull(applicationId: Snowflake, guildId: Snowflake, id: Snowflake): T?
Content copied to clipboard
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.
withFallback
Link copied to clipboard
infix fun EntitySupplier.withFallback(other: EntitySupplier): EntitySupplier
Content copied to clipboard
Sources
jvm source
Link copied to clipboard