Conversation
class Conversation( var exitString: String? = null, var promptTimeout: Long, block: suspend ConversationBuilder.() -> Unit)
Content copied to clipboard
A class that represent a conversation.
Parameters
exit String
A String entered by the user to exit the conversation.
prompt Timeout
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)
Content copied to clipboard
Functions
Link copied to clipboard
inline suspend fun startPrivately(discord: Discord, user: User): ConversationResult
Content copied to clipboard
Start a conversation with someone in their private messages.
Link copied to clipboard
inline suspend fun startPublicly( discord: Discord, user: User, channel: MessageChannel): ConversationResult
Content copied to clipboard
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
Content copied to clipboard
Start a conversation with someone from a slash command.