Dec 1 · 1 min read
Hi! were you able to get this running? I’m not sure that you can have slash commands listen in a particular channel. You should be able to check what channel any request came from. In one of my methods I have a check for if a message came from a particular channel by adding this bit of code
if (message.event.channel == "XXXXXXXX") {
console.log('in the correct channel'
}
You can get the channel ID by looking at the URL of the channel you want to watch out for: https://app.slack.com/client/XXXXXXX/THECHANNEL_ID
Hope this helps.