메소드 |
설명 |
|
__construct ( Client $client ) : void |
Instantiate a new Message. |
|
attach ( mixed $attachment ) |
Add an attachment to the message. |
|
clearAttachments ( ) |
Remove all attachments for the message. |
|
disableMarkdown ( ) : void |
Disable Markdown formatting for the message. |
|
enableMarkdown ( ) : void |
Enable Markdown formatting for the message. |
|
from ( string $username ) |
Change the name of the user the post will be made as. |
|
getAllowMarkdown ( ) : boolean |
Get whether message text should be formatted with
Slack's Markdown-like language. |
|
getAttachments ( ) : array |
Get the attachments for the message. |
|
getChannel ( ) : string |
Get the channel we will post to. |
|
getIcon ( ) : string |
Get the icon (either URL or emoji) we will post as. |
|
getIconType ( ) : string |
Get the icon type being used, if an icon is set. |
|
getMarkdownInAttachments ( ) : array |
Get the attachment fields which should be formatted
in Slack's Markdown-like language. |
|
getText ( ) : string |
Get the message text. |
|
getUsername ( ) : string |
Get the username we will post as. |
|
send ( string $text = null ) : void |
Send the message. |
|
setAllowMarkdown ( boolean $value ) : void |
Set whether message text should be formatted with
Slack's Markdown-like language. |
|
setAttachments ( array $attachments ) |
Set the attachments for the message. |
|
setChannel ( string $channel ) |
Set the channel we will post to. |
|
setIcon ( string $icon ) |
Set the icon (either URL or emoji) we will post as. |
|
setMarkdownInAttachments ( array $fields ) : void |
Set the attachment fields which should be formatted
in Slack's Markdown-like language. |
|
setText ( string $text ) |
Set the message text. |
|
setUsername ( string $username ) |
Set the username we will post as. |
|
to ( string $channel ) |
Change the channel the post will be made to. |
|
withIcon ( string $icon ) |
Chainable method for setting the icon. |
|