mrnicegvy
mrnicegvy

Reputation: 1

Slack incoming webhook won't send @channel or @here. I'd like to notify everyone in a channel using a bot message

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.

image of issue

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

Answers (1)

Suyash Gaur
Suyash Gaur

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

Related Questions