You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Posting attachments requires a to_json call on the attachments property. See slackapi/node-slack-sdk#12.
Slack-ruby-client should do it for you.
.chat_postMessage(channel: ...,text: 'Hello World',as_user: true,attachments: [{fallback: "New ticket from Andrea Lee - Ticket #1943: Can't rest my password - https://groove.hq/path/to/ticket/1943",pretext: "New ticket from Andrea Lee",title: "Ticket #1943: Can't reset my password",title_link: "https://groove.hq/path/to/ticket/1943",text: "Help! I tried to reset my password but nothing happened!",color: "#7CD197"}].to_json
The text was updated successfully, but these errors were encountered:
Posting attachments requires a
to_json
call on theattachments
property. See slackapi/node-slack-sdk#12.Slack-ruby-client should do it for you.
The text was updated successfully, but these errors were encountered: