Closed shotah closed 2 years ago
I'm not sure I get what's happening here exactly.\ You have a GitHub actions workflow that sends a Discord Webhook every time someone opens an enhancement issue on your repository. Did I get that right?
In that case, I'm afraid this is not possible. Only users can run slash commands. Slash commands are not messages that start with a /
, that is merely a UI thing.
To realise something like this, you'll need to write an own bot that proactively sends a poll to your channel when an issue is created (you could trigger it via an action or perhaps use some other GitHub API). I.e., you need to tailor something to fit your specific needs.\ I can say 2 things right away:
instant-poll
to support something like this, it would need to offer some sort of REST API to support the creation, update and deletion of polls, as well as probably some endpoint to get a formatted message showing the current results. I am not looking to implement something like this as it does not have a lot of use cases and poll handling is simple enough that it doesn't really need to be externalised.Hope I could help/give you some ideas. Unfortunately instant-poll
itself will not really be helpful for your purpose.
Thanks! yep, that is what I've started to look at. Cheers!
Unsure of how to enable a webhook to create a poll.
Looking at creating a poll for any issues that have the enhancement label. I need to spend some more time with the event api to see how to pull out the labels and subjects, but currently its not able to create a poll. I just see the plain text pop out into discord.
Thanks!