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
By default, we unfurl all links in any messages posted by users and Slack apps. This applies to messages posted via incoming webhooks, chat.postMessage and chat.postEphemeral.
Expected behaviour
No user profile should be attached to a posted message.
Steps to reproduce
Create a new Slack channel
Post a message (PostMessage) with a link to a user profile (eg. <https://example.slack.com/team/XXXXXXXXXX|Some user>) to that channel with UnfurlLinks set to false
In the debug log entry we can observe that unfurl_links was not sent to Slack eg.
This is related to #20 when the default value was changed to false. Forcing to send UnfurlLinks (by using MsgOptionDisableLinkUnfurl()) solves the problem.
Versions
Go: 1.21.0
slack-go/slack: 0.12.3
The text was updated successfully, but these errors were encountered:
What happened
When creating message parameters and setting
UnfurlMedia
tofalse
attribute is actually not set as it's equal to the default value. According to Slack documentation:Expected behaviour
No user profile should be attached to a posted message.
Steps to reproduce
PostMessage
) with a link to a user profile (eg.<https://example.slack.com/team/XXXXXXXXXX|Some user>
) to that channel withUnfurlLinks
set tofalse
unfurl_links
was not sent to Slack eg.This is related to #20 when the default value was changed to
false
. Forcing to sendUnfurlLinks
(by usingMsgOptionDisableLinkUnfurl()
) solves the problem.Versions
The text was updated successfully, but these errors were encountered: