Constants |
public Maknz
|
public Maknz
|
Methods |
public attach( $attachment) Add an attachment to the message.
|
public clearAttachments() Remove all attachments for the message.
|
public clearBlocks() Remove all blocks for the message.
|
public disableMarkdown() Disable Markdown formatting for the message.
|
public enableMarkdown() Enable Markdown formatting for the message.
|
public from( $username) Change the name of the user the post will be made as.
|
public getAllowMarkdown() Get whether message text should be formatted with Slack's Markdown-like language.
|
public getAttachments() Get the attachments for the message.
|
public getBlocks() Get the blocks for the message.
|
public getBlocksAsArrays() Get the blocks for the message in array format.
|
public getChannel() Get the channel we will post to.
|
public getIcon() Get the icon (either URL or emoji) we will post as.
|
public getIconType() Get the icon type being used, if an icon is set.
|
public getMarkdownInAttachments() Get the attachment fields which should be formatted in Slack's Markdown-like language.
|
public getText() Get the message text.
|
public getUsername() Get the username we will post as.
|
public setAllowMarkdown( $value) Set whether message text should be formatted with Slack's Markdown-like language.
|
public setAttachments(array $attachments) Set the attachments for the message.
|
public setBlocks(array $blocks) Set the blocks for the message.
|
public setChannel( $channel) Set the channel we will post to.
|
public setIcon( $icon) Set the icon (either URL or emoji) we will post as.
|
public setMarkdownInAttachments(array $fields) Set the attachment fields which should be formatted in Slack's Markdown-like language.
|
public setText( $text) Set the message text.
|
public setUsername( $username) Set the username we will post as.
|
public to( $channel) Change the channel the post will be made to.
|
public withBlock( $block) Add a block to the message.
|
public withIcon( $icon) Chainable method for setting the icon.
|
Properties |
protected $allow_markdown = true Whether the message text should be interpreted in Slack's Markdown-like language.
|
protected $attachments = [] An array of attachments to send.
|
protected $blocks = [] An array of blocks to send.
|
protected $channel = NULL The channel the message should be sent to.
|
protected $icon = NULL The URL to the icon to use.
|
protected $iconType = NULL The type of icon we are using.
|
protected $markdown_in_attachments = [] The attachment fields which should be formatted with Slack's Markdown-like language.
|
protected $text = NULL The text to send with the message.
|
protected $username = NULL The username the message should be sent as.
|