tock / ai.tock.bot.engine.action / SendAttachment

# SendAttachment

`open class SendAttachment : Action` (source)

A simple attachment file sent.

### Types

#### AttachmentType | `enum class AttachmentType`

### Constructors

#### <init> | A simple attachment file sent. `SendAttachment(playerId: PlayerId, applicationId: String, recipientId: PlayerId, url: String, type: AttachmentType, id: Id<Action> = newId(), date: Instant = Instant.now(), state: EventState = EventState(), metadata: ActionMetadata = ActionMetadata())`

### Properties

#### type | `val type: AttachmentType`
#### url | `val url: String`

### Functions

#### toMessage | `open fun toMessage(): Message`