tock / ai.tock.bot.engine.message / Attachment

# Attachment

`data class Attachment : Message` (source)

A simple attachment file.

### Constructors

#### <init> | A simple attachment file. `Attachment(url: String, type: AttachmentType, delay: Long = 0)`

### Properties

#### delay | `val delay: Long`
#### eventType | `val eventType: EventType`
#### type | `val type: AttachmentType`
#### url | `val url: String`

### Functions

#### isSimpleMessage | `fun isSimpleMessage(): Boolean`
#### toAction | `fun toAction(playerId: PlayerId, applicationId: String, recipientId: PlayerId): Action`
#### toPrettyString | Returns a human readable string representation of the message. `fun toPrettyString(): String`