bootdesk/chat-sdk

Message
in package

Table of Contents

Properties

$attachments  : array<string|int, mixed>
$author  : Author
$extras  : array<string, mixed>
$formatted  : Document|null
$id  : string
$isDM  : bool
$isMention  : bool
$originId  : string|null
$price  : Money|null
$raw  : string|null
$text  : string
$threadId  : string

Methods

__construct()  : mixed
replaceAttachments()  : self

Properties

$attachments read-only

public array<string|int, mixed> $attachments = []

$extras

public array<string, mixed> $extras = []

$formatted read-only

public Document|null $formatted = null

$isDM read-only

public bool $isDM = false

$isMention read-only

public bool $isMention = false

$originId read-only

public string|null $originId = null

$price read-only

public Money|null $price = null

$raw read-only

public string|null $raw = null

$threadId read-only

public string $threadId

Methods

__construct()

public __construct(string $id, string $threadId, Author $author, string $text[, Document|null $formatted = null ][, array<string|int, Attachment$attachments = [] ][, bool $isMention = false ][, bool $isDM = false ][, string|null $raw = null ][, string|null $originId = null ][, Money|null $price = null ]) : mixed
Parameters
$id : string
$threadId : string
$author : Author
$text : string
$formatted : Document|null = null
$attachments : array<string|int, Attachment> = []
$isMention : bool = false
$isDM : bool = false
$raw : string|null = null
$originId : string|null = null
$price : Money|null = null

replaceAttachments()

public replaceAttachments(array<string|int, Attachment$attachments) : self
Parameters
$attachments : array<string|int, Attachment>
Return values
self
On this page

Search results