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

# SlackMessageAttachment

`data class SlackMessageAttachment` (source)

### Constructors

#### <init> | `SlackMessageAttachment(actions: List<Button>, fields: List<AttachmentField>, fallback: String, color: String, text: String? = null, pretext: String? = null, callbackId: String = "default")`

### Properties

#### actions | `val actions: List<Button>`
#### callbackId | `val callbackId: String`
#### color | `val color: String`
#### fallback | `val fallback: String`
#### fields | `val fields: List<AttachmentField>`
#### pretext | `val pretext: String?`
#### text | `val text: String?`

### Functions

#### hasOnlyActions | `fun hasOnlyActions(): Boolean`
#### toGenericElement | `fun toGenericElement(): GenericElement`