Package me. jakejmattson. discordkt. conversations
Contains all logic and builders for conversations.
Types
Link copied to clipboard
Builder for a button prompt
Link copied to clipboard
class Conversation( var exitString: String? = null, var promptTimeout: Long, block: suspend ConversationBuilder.() -> Unit)
Content copied to clipboard
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
Content copied to clipboard
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)
Content copied to clipboard
A simple button builder
Link copied to clipboard
Builder functions for conversation buttons.
Link copied to clipboard
An enum representing possible ways that a conversation can end.
Link copied to clipboard
Object to keep tracking of running conversations.
Link copied to clipboard
class SlashButtonPromptBuilder<T, U : TypeContainer> : ButtonPromptBuilder<T>
Content copied to clipboard
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
Content copied to clipboard
Functions
Link copied to clipboard
fun conversation( exitString: String? = null, promptTimeout: Long = 0, block: suspend ConversationBuilder.() -> Unit): Conversation
Content copied to clipboard
This block builds a conversation.
Link copied to clipboard
fun slashConversation( exitString: String? = null, promptTimeout: Long = 0, block: suspend ConversationBuilder.() -> Unit): Conversation
Content copied to clipboard
This block builds a slash conversation.