class SlackAttachmentField (View source)

Properties

protected string $title The title field of the attachment field.
protected string $content The content of the attachment field.
protected bool $short Whether the content is short.

Methods

$this
title(string $title)

Set the title of the field.

$this
content(string $content)

Set the content of the field.

$this
long()

Indicates that the content should not be displayed side-by-side with other fields.

array
toArray()

Get the array representation of the attachment field.

Details

$this title(string $title)

Set the title of the field.

Parameters

string $title

Return Value

$this

$this content(string $content)

Set the content of the field.

Parameters

string $content

Return Value

$this

$this long()

Indicates that the content should not be displayed side-by-side with other fields.

Return Value

$this

array toArray()

Get the array representation of the attachment field.

Return Value

array