Package me.jakejmattson.discordkt.conversations

Contains all logic and builders for conversations.

Types

Link copied to clipboard
open class ButtonPromptBuilder<T>

Builder for a button prompt

Link copied to clipboard
class Conversation(    var exitString: String? = null,     var promptTimeout: Long,     block: suspend ConversationBuilder.() -> Unit)

A class that represent a conversation.

Link copied to clipboard
abstract class ConversationBuilder(    val discord: Discord,     val user: User,     val channel: MessageChannel,     exitString: String? = null,     timeout: Long) : Responder

DSL for building a conversation.

Link copied to clipboard
class ConversationButton<T>(    val id: String,     val label: String?,     val emoji: ReactionEmoji?,     val value: T,     val style: ButtonStyle)

A simple button builder

Link copied to clipboard
class ConversationButtonRowBuilder<T>

Builder functions for conversation buttons.

Link copied to clipboard
enum ConversationResult : Enum<ConversationResult>

An enum representing possible ways that a conversation can end.

Link copied to clipboard
object Conversations

Object to keep tracking of running conversations.

Link copied to clipboard
class SlashButtonPromptBuilder<T, U : TypeContainer> : ButtonPromptBuilder<T>

Builder for a button prompt in a slash conversation.

Link copied to clipboard
class SlashConversationBuilder<T : TypeContainer>(    val discord: Discord,     val user: User,     event: SlashCommandEvent<T>,     exitString: String? = null,     timeout: Long) : ConversationBuilder

Functions

Link copied to clipboard
fun conversation(    exitString: String? = null,     promptTimeout: Long = 0,     block: suspend ConversationBuilder.() -> Unit): Conversation

This block builds a conversation.

Link copied to clipboard
fun slashConversation(    exitString: String? = null,     promptTimeout: Long = 0,     block: suspend ConversationBuilder.() -> Unit): Conversation

This block builds a slash conversation.