Skip to content
This repository was archived by the owner on May 27, 2025. It is now read-only.
This repository was archived by the owner on May 27, 2025. It is now read-only.

Handling for Channel events #553

@iancward

Description

@iancward

Description

Hello, I'd like to have Hubot be able to send notifications to a channel when a channel is created, archived, or deleted. I've found some code examples using robot.adapter.client?.on? 'raw_message' but when I used it, I received a deprecation warning:

WARNING SlackClient#on() is a deprecated method and will be removed in the next major version of hubot-slack. It is recommended not to use event handlers on the Slack clients directly. Please file an issue for any specific event type you need.
Issue tracker: <https://github.com/slackapi/hubot-slack/issues>
Event type: raw_message

It looks like there are some event handling capabilities already; however, I'd like to use these, which don't appear to be included:

channel_archive
channel_created
channel_deleted
channel_rename
channel_unarchive

What type of issue is this? (place an x in one of the [ ])

  • bug
  • enhancement (feature request)
  • question
  • documentation related
  • testing related
  • discussion

Requirements (place an x in each of the [ ])

  • I've read and understood the Contributing guidelines and have done my best effort to follow them.
  • I've read and agree to the Code of Conduct.
  • I've searched for any related issues and avoided creating a duplicate issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions