Conversation

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

A class that represent a conversation.

Parameters

exitString

A String entered by the user to exit the conversation.

promptTimeout

The amount of time (in seconds) before a prompt times out and is aborted.

Constructors

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

Functions

Link copied to clipboard
inline suspend fun startPrivately(discord: Discord, user: User): ConversationResult

Start a conversation with someone in their private messages.

Link copied to clipboard
inline suspend fun startPublicly(    discord: Discord,     user: User,     channel: MessageChannel): ConversationResult

Start a conversation with someone in a public channel.

Link copied to clipboard
inline suspend fun <T : TypeContainer> startSlashResponse(    discord: Discord,     user: User,     event: SlashCommandEvent<T>): ConversationResult

Start a conversation with someone from a slash command.

Properties

Link copied to clipboard
var exitString: String? = null
Link copied to clipboard
var promptTimeout: Long