Overview
  • Namespace
  • Class

Namespaces

  • Slack
    • Message

Classes

  • Attachment
  • AttachmentBuilder
  • AttachmentField
  • Message
  • MessageBuilder

Class Message

Represents a chat message and its data.

Slack\DataObject implements JsonSerializable
Extended by Slack\ClientObject
Extended by Slack\Message\Message
Namespace: Slack\Message
Located at Message/Message.php

Methods summary

public string
# getText( )

Gets the message text.

Gets the message text.

Returns

string
public boolean
# isMarkdownEnabled( )

Checks if Markdown is enabled for the message text.

Checks if Markdown is enabled for the message text.

Returns

boolean
public boolean
# hasAttachments( )

Checks if the message has attachments.

Checks if the message has attachments.

Returns

boolean
True if the message has attachments, otherwise false.
public Slack\Message\Attachment[]
# getAttachments( )

Gets all message attachments.

Gets all message attachments.

Returns

Slack\Message\Attachment[]
public React\Promise\PromiseInterface
# getChannel( )

Gets the channel the message is in.

Gets the channel the message is in.

Returns

React\Promise\PromiseInterface
public React\Promise\PromiseInterface
# getUser( )

Gets the user that sent the message.

Gets the user that sent the message.

Returns

React\Promise\PromiseInterface
public
# jsonUnserialize( array $data )

Re-initializes the object when unserialized or created from a data array.

Re-initializes the object when unserialized or created from a data array.

Parameters

$data
The object data.

Overrides

Slack\DataObject::jsonUnserialize

Methods inherited from Slack\ClientObject

__construct(), getClient()

Methods inherited from Slack\DataObject

fromData(), jsonSerialize()

Properties summary

Properties inherited from Slack\ClientObject

$client

Properties inherited from Slack\DataObject

$data

API documentation generated by ApiGen