Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for channel_topic event message #666

Closed
6 tasks
jahell opened this issue Jan 19, 2021 · 5 comments
Closed
6 tasks

Support for channel_topic event message #666

jahell opened this issue Jan 19, 2021 · 5 comments
Labels
project:bolt project:slack-api-model project:slack-api-model project:slack-app-backend question M-T: User needs support to use the project

Comments

@jahell
Copy link

jahell commented Jan 19, 2021

Hi there,

I'm trying to create an event listener for the channel_topic event (https://api.slack.com/events/message/channel_topic), however that event does not currently seem supported.

Have not dug too deep into the code, but if it's a quick fix would be highly appreciated :)

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

Not exactly sure what all the surface area of this is.

  • bolt (Bolt for Java)
  • bolt-{sub modules} (Bolt for Java - optional modules)
  • slack-api-client (Slack API Clients)
  • slack-api-model (Slack API Data Models)
  • slack-api-*-kotlin-extension (Kotlin Extensions for Slack API Clients)
  • slack-app-backend (The primitive layer of Bolt for Java)

Requirements

Please make sure if this topic is specific to this SDK. For general questions/issues about Slack API platform or its server-side, could you submit questions at https://my.slack.com/help/requests/new instead. 🙇

Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you are agreeing to the those rules.

@seratch
Copy link
Member

seratch commented Jan 19, 2021

Hi @jahell, thanks for asking this! It has been supported since v1.4.1. Subscribe to the MessageChannelTopicEvent class:

app.event(MessageChannelTopicEvent.class, (event, ctx) -> {
  ctx.logger.info("channel topic - {}", event);
  return ctx.ack();
});

See the PR #650 for details.

@seratch seratch added project:bolt project:slack-api-model project:slack-api-model project:slack-app-backend question M-T: User needs support to use the project and removed untriaged labels Jan 19, 2021
@jahell
Copy link
Author

jahell commented Jan 19, 2021

Ahh, sorry. Didn't realize that we were behind this much. Thanks for the quick response

@jahell jahell closed this as completed Jan 19, 2021
@jahell
Copy link
Author

jahell commented Jan 19, 2021

@seratch Upgrading to v.1.5.2 fixed this for us, but curious about something since when looking a bit closer it seems like our version was v.1.5.0-M1 which sounds like it should have had the code given that it was introduced in v.1.4.1. I also can't seem to find v.1.5.0-M1 in the tags anymore. Was there something wrong with that release that it got removed?

@seratch
Copy link
Member

seratch commented Jan 19, 2021

@jahell We should have cut off v1.5.1-M1 tag but I forgot to do so. The milestone version was shipped for early beta users of Socket Mode #633 . The release date of the version was Dec 2, which is prior to v1.4.1 release (on Dec 17).

@jahell
Copy link
Author

jahell commented Jan 19, 2021

thanks for explaining.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
project:bolt project:slack-api-model project:slack-api-model project:slack-app-backend question M-T: User needs support to use the project
Projects
None yet
Development

No branches or pull requests

2 participants