ErikKalkoken / slackApiDoc

Documentation of undocumented Slack API methods
MIT License
409 stars 60 forks source link

commands.list to get available slash commands #45

Closed twouters closed 5 years ago

twouters commented 5 years ago

Just noticed a commands.list request being used by Slack:

:method: POST
:path: /api/commands.list?_x_id=<someid>

As far as I can tell it returns a list of all available slash commands on our team

twouters commented 5 years ago

There seems to be a commands_changed event on RTM too, not sure what exaclty it returns though.

ErikKalkoken commented 5 years ago

Thanks for letting me know about this new undocumented slash command. It works great with legacy tokens and I have added it to the repo.

https://github.com/ErikKalkoken/slackApiDoc/blob/master/commands.list.md