tock / ai.tock.bot.connector.slack.model / Button

Button

data class Button (source)

A Slack button: https://api.slack.com/reference/messaging/block-elements#button

Constructors

<init>

A Slack button: https://api.slack.com/reference/messaging/block-elements#button

Button(name: String, text: String = "", value: String, type: String = "button")

Properties

name

val name: String

text

val text: String

type

val type: String

value

val value: String

Functions

toChoice

fun toChoice(): Choice