message_object: Message Object

View source: R/messaging.R

message_objectR Documentation

Message Object

Description

Views are app-customized visual areas within modals and Home tabs.

Usage

message_object(
  text = NULL,
  blocks = NULL,
  attachments = NULL,
  thread_ts = NULL,
  mrkdown = NULL
)

Arguments

text

The usage of this field changes depending on whether you're using blocks or not. If you are, this is used as a fallback string to display in notifications. If you aren't, this is the main body text of the message. It can be formatted as plain text, or with mrkdwn. This field is not enforced as required when using blocks, however it is highly recommended that you include it as the aforementioned fallback.

blocks

A list of @familyBlocks in the same format as described in the building blocks guide.

attachments

A list of legacy secondary attachments. We recommend you use blocks instead.

The

ID of another un-threaded message to reply to.

mrkdwn

Determines whether the text field is rendered according to mrkdwn formatting or not. Defaults to true.

Value

A message object

See Also

https://api.slack.com/reference/messaging/payload

Other Messaging: attachment_field_object(), attachment_object()


samterfa/slackme documentation built on April 11, 2022, 3:29 a.m.