kfei / slack-cleaner

:speech_balloon: Bulk delete messages and files on Slack
MIT License
1.24k stars 144 forks source link

list of required scopes? #73

Open sniktawnodnarb opened 5 years ago

sniktawnodnarb commented 5 years ago

Can someone let me know what scopes are required to delete a message from a #general channel? I keep getting slacker.Error: missing_scope messages. Kinda strange this isn't in the README.

svagml commented 5 years ago

I get the same message even after picking admin.

sgratzl commented 5 years ago

see also https://github.com/sgratzl/slack-cleaner#minimal-slack-permission-scopes-required in my fork. There is a PR for this in this repository but never merged

aaditkamat commented 5 years ago

When I was trying to delete the bot messages from a channel after a certain date through the command slack-cleaner --token <TOKEN> --message --channel <CHANNEL> --user "*" --after <DATE>, I was getting the same error. So, I had to look at the source code and then check the respective Slack API methods called to see the required scopes. I'd like to take up this issue and add a seperate file to list the required scopes.

sgratzl commented 5 years ago

in the fork there is https://github.com/sgratzl/slack-cleaner/pull/49/files which would contain some longer instructions. However, my feedback was not included so far, thus I haven't merge it yet. You could take a look at it and suggest some improvements.