Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Slack's "file_shared" event not triggered in channels #428

Closed
@christian-bick

Description

I'm using botkit 0.2.2 with Slack via the RTM-API and want to my bot to react to files being uploaded/shared by users in groups and channels.

The following code works fine for listening to "file_shared" events in groups:

controller.on('file_shared', (bot, file) => {
  console.log(file.file_id);
});

But when a file is uploaded/shared in a channel then the event is not being triggered.

According to the Slack API, the "file_shared" event is the one that should be triggered in my use case. I also tried other event types like "file_created" and "file_public" to make sure that I don't misinterpret anything but as expected that didn't work as well.

I'm running botkit on node 6.5 within in a multi-team setup managed by beepboop-botkit.

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions