1

I can succesfully create a new channel. When I want to move my channel to the archive I get a response with as error code channel_not_found while i'm 100% sure my channel name is correct.

Does anyone know why I receive this? I'm using slack-node in Node.js

    slackController.slack.api('channels.archive', {
    channel: "#test123"
}, function (err, response) {
    console.log(response);
    return callback("ok");
});

enter image description here

stef morren
  • 289
  • 2
  • 5
  • 15

1 Answers1

2

Update: I've found out that you should not use the channel name but the channel id. The API documentation wasn't clear about that.

stef morren
  • 289
  • 2
  • 5
  • 15