Click or drag to resize

Message Properties

The Message type exposes the following members.

Properties
  NameDescription
Public propertychannel
The channel. If not specified then the default channel for the configured webhook is used.
Public propertycolor
The color of the line to the left of the attachment. Can either be one of 'good', 'warning', 'danger', or any hex color code.
Public propertyimage_url
A valid URL to an image file that will be displayed inside a message attachment. We currently support the following formats: GIF, JPEG, PNG, and BMP. Large images will be resized to a maximum width of 360px or a maximum height of 500px, while still maintaining the original aspect ratio.
Public propertysubject
The subject of the message. Displayed as the message before the attachment.
Public propertytext
The text under the title.
Public propertythumb_url
A valid URL to an image file that will be displayed as a thumbnail on the right side of a message attachment. We currently support the following formats: GIF, JPEG, PNG, and BMP. The thumbnail's longest dimension will be scaled down to 75px while maintaining the aspect ratio of the image. The filesize of the image must also be less than 500 KB. For best results, please use images that are already 75px by 75px.
Public propertytitle
The title of the message. This is displayed in bold next to the formatted line. Similar to an attachment.
Public propertytitle_link
By passing a valid URL in the title_link parameter (optional), the title text will be hyperlinked.
Public propertyurl
The webhook url. If this is null then the service property is used.
Public propertyusername
The user name or 'from' address used. This does not need to be a valid Slack user.
Top
See Also