Package-level declarations

Types

Link copied to clipboard
typealias ChatCommandCheck = CheckWithCache<MessageCreateEvent>

Check type for chat commands.

Link copied to clipboard
typealias Check<T> = suspend CheckContext<T>.() -> Unit

Types alias representing a check function for a specific event type.

Link copied to clipboard
open class CheckContext<out T : Event>(val event: T, val locale: Locale) : KordExKoinComponent

Class representing the context for a check. This allows the storage of check status and a message for the users.

Link copied to clipboard
class CheckContextWithCache<out T : Event>(event: T, locale: Locale, val cache: MutableStringKeyedMap<Any>) : CheckContext<T>

A check context that provides a cache map, specifically meant for use in event, component and command contexts that provide a cache map for the lifecycle of the handler.

Link copied to clipboard
typealias CheckWithCache<T> = suspend CheckContextWithCache<T>.() -> Unit

Types alias representing a check function for a specific event type.

Link copied to clipboard
typealias MessageCommandCheck = CheckWithCache<MessageCommandInteractionCreateEvent>

Check type for message commands.

Link copied to clipboard
typealias SlashCommandCheck = CheckWithCache<ChatInputCommandInteractionCreateEvent>

Check type for slash commands.

Link copied to clipboard
typealias UserCommandCheck = CheckWithCache<UserCommandInteractionCreateEvent>

Check type for user commands.