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

Does opsdroid support respond to a message which is only visible to the user only? #2000

Open
chunyang-wen opened this issue Jul 3, 2023 · 4 comments

Comments

@chunyang-wen
Copy link

Description

When we are using slack sdk, we can register a command and when we respond to a command, it will show a message which is only visible to the user who triggers the command.

I'd like to know whether opsdroid supprts this in the SlashCommand event.

Currently when we call event.respond, it will post a message into the channel.

@chunyang-wen
Copy link
Author

In opsdroid/connector/slack/events.py

response_type is hard coded into in_channel.

https://api.slack.com/interactivity/slash-commands

There is a message visibility:

  • ephemeral
  • in_channel

The previous one is what I needed.

@jacobtomlinson
Copy link
Member

This looks like a duplicate of #1941

@chunyang-wen
Copy link
Author

Yep. That PR is not merged then

@chunyang-wen
Copy link
Author

Double check the PR. It is a configuration for the connector. I agree with @FabioRosado in #1957 that it is better we support both cases

  • A connector level configuration
  • Specific skill configuration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants