Property | Type | Description | |
---|---|---|---|
$authorIcon | string | Optional author icon for the attachment. | |
$authorLink | string | Optional author link for the attachment. | |
$authorName | string | Optional author name for the attachment. | |
$color | string | The color to use for the attachment. | |
$fallback | string | The fallback text to use for clients that don't support attachments. | |
$fields | The fields of the attachment. | ||
$footer | string | The text to use for the attachment footer. | |
$footerIcon | string | The icon to use for the attachment footer. | |
$imageUrl | string | Optional image that should appear within the attachment. | |
$preText | string | Optional text that should appear above the formatted data. | |
$text | string | Optional text that should appear within the attachment. | |
$thumbUrl | string | Optional thumbnail that should appear within the attachment. | |
$timestamp | DateTime | The timestamp to use for the attachment. | |
$title | string | Optional title for the attachment. | |
$titleLink | string | Optional title link for the attachment. |
Method | Description | |
---|---|---|
__construct ( ) | ||
addField ( |
Add a field to the attachment. | |
addFields ( array $fields ) | Add the fields for the attachment. | |
clearFields ( ) | Clear all fields for this attachment. | |
create ( ) | ||
setAuthorIcon ( string $authorIcon ) | Set the author icon to use for the attachment. | |
setAuthorLink ( string $authorLink ) | Set the auhtor link to use for the attachment. | |
setAuthorName ( string $authorName ) | Set the author name to use for the attachment. | |
setColor ( string $color ) | Set the color to use for the attachment. | |
setFallback ( string $fallback ) | Set the fallback text. | |
setFields ( array $fields ) | Set the fields for the attachment. | |
setFooter ( string $footer ) | Set the footer text to use for the attachment. | |
setFooterIcon ( string $footerIcon ) | Set the footer icon to use for the attachment. | |
setImageUrl ( string $imageUrl ) | Set the optional image to appear within the attachment. | |
setPreText ( string $preText ) | Set the text that should appear above the formatted data. | |
setText ( string $text ) | Set the optional text to appear within the attachment. | |
setThumbUrl ( string $thumbUrl ) | Set the optional thumbnail to appear within the attachment. | |
setTimestamp ( DateTime $timestamp ) | Set the timestamp to use for the attachment. | |
setTitle ( string $title ) | Set the title to use for the attachment. | |
setTitleLink ( string $titleLink ) | Set the title link to use for the attachment. | |
toArray ( ) : array | Convert this attachment to its array representation. |
public setAuthorIcon ( string $authorIcon ) | ||
$authorIcon | string |
public setAuthorLink ( string $authorLink ) | ||
$authorLink | string |
public setAuthorName ( string $authorName ) | ||
$authorName | string |
public setFallback ( string $fallback ) | ||
$fallback | string |
public setImageUrl ( string $imageUrl ) | ||
$imageUrl | string |
public setPreText ( string $preText ) | ||
$preText | string |
public setThumbUrl ( string $thumbUrl ) | ||
$thumbUrl | string |
public setTimestamp ( DateTime $timestamp ) | ||
$timestamp | DateTime |
public setTitleLink ( string $titleLink ) | ||
$titleLink | string |
protected string $authorIcon | ||
return | string |
protected string $authorLink | ||
return | string |
protected string $authorName | ||
return | string |
protected string $color | ||
return | string |
protected string $fallback | ||
return | string |
protected Collection,Illuminate\Support $fields | ||
return |
protected string $imageUrl | ||
return | string |
protected string $preText | ||
return | string |
protected string $text | ||
return | string |
protected string $thumbUrl | ||
return | string |
protected DateTime $timestamp | ||
return | DateTime |
protected string $title | ||
return | string |
protected string $titleLink | ||
return | string |