Kord
class Kord(resources: ClientResources, cache: DataCache, gateway: MasterGateway, rest: RestClient, selfId: Snowflake, eventFlow: MutableSharedFlow<Event>, dispatcher: CoroutineDispatcher, interceptorBuilder: () -> GatewayEventInterceptor) : CoroutineScope
Content copied to clipboard
The central adapter between other Kord modules and source of core events.
Constructors
Kord
Link copied to clipboard
fun Kord(resources: ClientResources, cache: DataCache, gateway: MasterGateway, rest: RestClient, selfId: Snowflake, eventFlow: MutableSharedFlow<Event>, dispatcher: CoroutineDispatcher, interceptorBuilder: () -> GatewayEventInterceptor = {
DefaultGatewayEventInterceptor(cache)
})
Content copied to clipboard
Types
Functions
bulkEditApplicationCommandPermissions
Link copied to clipboard
inline suspend fun bulkEditApplicationCommandPermissions(guildId: Snowflake, builder: ApplicationCommandPermissionsBulkModifyBuilder.() -> Unit)
Content copied to clipboard
createGlobalApplicationCommands
Link copied to clipboard
inline suspend fun createGlobalApplicationCommands(builder: MultiApplicationCommandBuilder.() -> Unit): Flow<GlobalApplicationCommand>
Content copied to clipboard
createGlobalChatInputCommand
Link copied to clipboard
inline suspend fun createGlobalChatInputCommand(name: String, description: String, builder: ChatInputCreateBuilder.() -> Unit = {}): GlobalChatInputCommand
Content copied to clipboard
createGlobalMessageCommand
Link copied to clipboard
inline suspend fun createGlobalMessageCommand(name: String, builder: MessageCommandCreateBuilder.() -> Unit = {}): GlobalMessageCommand
Content copied to clipboard
createGlobalUserCommand
Link copied to clipboard
inline suspend fun createGlobalUserCommand(name: String, builder: UserCommandCreateBuilder.() -> Unit = {}): GlobalUserCommand
Content copied to clipboard
createGuild
Link copied to clipboard
@DeprecatedSinceKord(version = 0.7.0 )
Content copied to clipboard
Requests to create a new Guild configured through the builder.
inline suspend fun createGuild(name: String, builder: GuildCreateBuilder.() -> Unit): Guild
Content copied to clipboard
Requests to create a new Guild configured through the builder.
createGuildApplicationCommands
Link copied to clipboard
inline suspend fun createGuildApplicationCommands(guildId: Snowflake, builder: MultiApplicationCommandBuilder.() -> Unit): Flow<GuildApplicationCommand>
Content copied to clipboard
createGuildChatInputCommand
Link copied to clipboard
inline suspend fun createGuildChatInputCommand(guildId: Snowflake, name: String, description: String, builder: ChatInputCreateBuilder.() -> Unit = {}): GuildChatInputCommand
Content copied to clipboard
createGuildMessageCommand
Link copied to clipboard
inline suspend fun createGuildMessageCommand(guildId: Snowflake, name: String, builder: MessageCommandCreateBuilder.() -> Unit = {}): GuildMessageCommand
Content copied to clipboard
createGuildUserCommand
Link copied to clipboard
inline suspend fun createGuildUserCommand(guildId: Snowflake, name: String, builder: UserCommandCreateBuilder.() -> Unit = {}): GuildUserCommand
Content copied to clipboard
editApplicationCommandPermissions
Link copied to clipboard
inline suspend fun editApplicationCommandPermissions(guildId: Snowflake, commandId: Snowflake, builder: ApplicationCommandPermissionsModifyBuilder.() -> Unit)
Content copied to clipboard
editPresence
Link copied to clipboard
getApplicationInfo
Link copied to clipboard
getChannel
Link copied to clipboard
suspend fun getChannel(id: Snowflake, strategy: EntitySupplyStrategy<*> = resources.defaultStrategy): Channel?
Content copied to clipboard
getChannelOf
Link copied to clipboard
inline suspend fun <T : Channel> getChannelOf(id: Snowflake, strategy: EntitySupplyStrategy<*> = resources.defaultStrategy): T?
Content copied to clipboard
getGlobalApplicationCommand
Link copied to clipboard
suspend fun getGlobalApplicationCommand(commandId: Snowflake): GlobalApplicationCommand
Content copied to clipboard
getGlobalApplicationCommandOf
Link copied to clipboard
getGlobalApplicationCommandOfOrNull
Link copied to clipboard
suspend fun <T> getGlobalApplicationCommandOfOrNull(commandId: Snowflake): T?
Content copied to clipboard
getGlobalApplicationCommandOrNull
Link copied to clipboard
suspend fun getGlobalApplicationCommandOrNull(commandId: Snowflake): GlobalApplicationCommand?
Content copied to clipboard
getGuild
Link copied to clipboard
suspend fun getGuild(id: Snowflake, strategy: EntitySupplyStrategy<*> = resources.defaultStrategy): Guild?
Content copied to clipboard
getGuildApplicationCommand
Link copied to clipboard
suspend fun getGuildApplicationCommand(guildId: Snowflake, commandId: Snowflake): GuildApplicationCommand
Content copied to clipboard
getGuildApplicationCommandOf
Link copied to clipboard
inline suspend fun <T : GuildApplicationCommand> getGuildApplicationCommandOf(guildId: Snowflake, commandId: Snowflake): T
Content copied to clipboard
getGuildApplicationCommandOfOrNull
Link copied to clipboard
inline suspend fun <T : GuildApplicationCommand> getGuildApplicationCommandOfOrNull(guildId: Snowflake, commandId: Snowflake): T?
Content copied to clipboard
getGuildApplicationCommandOrNull
Link copied to clipboard
suspend fun getGuildApplicationCommandOrNull(guildId: Snowflake, commandId: Snowflake): GuildApplicationCommand?
Content copied to clipboard
getGuildApplicationCommands
Link copied to clipboard
fun getGuildApplicationCommands(guildId: Snowflake): Flow<GuildApplicationCommand>
Content copied to clipboard
getGuildPreview
Link copied to clipboard
suspend fun getGuildPreview(guildId: Snowflake, strategy: EntitySupplyStrategy<*> = resources.defaultStrategy): GuildPreview
Content copied to clipboard
Requests to get the GuildPreview of a guild with the guildId through the strategy, returns null if the GuildPreview isn't present.
getGuildPreviewOrNull
Link copied to clipboard
suspend fun getGuildPreviewOrNull(guildId: Snowflake, strategy: EntitySupplyStrategy<*> = resources.defaultStrategy): GuildPreview?
Content copied to clipboard
Requests to get the GuildPreview of a guild with the guildId through the strategy, returns null if the GuildPreview isn't present.
getWebhook
Link copied to clipboard
suspend fun getWebhook(id: Snowflake, strategy: EntitySupplyStrategy<*> = resources.defaultStrategy): Webhook
Content copied to clipboard
Requests to get the Webhook in this guild.
getWebhookOrNull
Link copied to clipboard
suspend fun getWebhookOrNull(id: Snowflake, strategy: EntitySupplyStrategy<*> = resources.defaultStrategy): Webhook?
Content copied to clipboard
Requests to get the Webhook in this guild with an authentication token, returns null if the webhook was not present.
getWebhookWithToken
Link copied to clipboard
suspend fun getWebhookWithToken(id: Snowflake, token: String, strategy: EntitySupplyStrategy<*> = resources.defaultStrategy): Webhook
Content copied to clipboard
Requests to get the Webhook in this guild with an authentication token.
getWebhookWithTokenOrNull
Link copied to clipboard
suspend fun getWebhookWithTokenOrNull(id: Snowflake, token: String, strategy: EntitySupplyStrategy<*>): Webhook?
Content copied to clipboard
Requests to get the Webhook in this guild with an authentication token, returns null if the webhook was not present.
with
Link copied to clipboard
Properties
coroutineContext
Link copied to clipboard
defaultSupplier
Link copied to clipboard
The default supplier, obtained through Kord's resources and configured through KordBuilder.defaultStrategy.
gateway
Link copied to clipboard
globalCommands
Link copied to clipboard
resources
Link copied to clipboard
Extensions
Sources
jvm source
Link copied to clipboard