I use this JavaScript code to send notifications to Slack channel:
function start() {
const axios = require('axios');
axios.post('https://hooks.slack.com/services/34234/13222/124124',
{text: " :x: @channel message send! "})
.then((response) => console.log(response))
.catch((error) => console.log(error));
}
start();
But I receive @channel
just as a simple text. It should be channel notification yellow. Do you know what might be the issue?