Reputation: 1
HELP!!! I can't get <!channel> or <!here> to work using the Block Kit Builder. Would like to notify everyone in a channel when the bot sends a message.
Below is the code i'm using.
{
"blocks": [
{
"type": "header",
"text": {
"type": "plain_text",
"text": "BUY/LONG",
"emoji": true
}
},
{
"type": "section",
"text": {
"type": "plain_text",
"text": "{{ticker}} with 25% BP at {{open}}",
"emoji": true
},
"accessory": {
"type": "button",
"text": {
"type": "plain_text",
"text": "OPEN CHART",
"emoji": true
},
"value": "click_me_123",
"url": "https://www.tradingview.com/chart/?symbol=kucoin%3AALGOUSDT",
"action_id": "button-action"
}
},
{
"type": "divider"
},
{
"type": "section",
"text": {
"type": "plain_text",
"text": "<!here>",
"emoji": true
}
}
]
}
Upvotes: 0
Views: 865
Reputation: 2861
In the given code 'text type' must be "type": "mrkdwn" to make use of the 'mentions'.
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "<!here>",
"emoji": true
}
}
Upvotes: 1