Releases: sgratzl/slack_cleaner2
Releases · sgratzl/slack_cleaner2
Better Scope Handling
- refactored and cleaned up the required scopes
- migrated documentation to custom slack app only
- add error messages with required scope hints
- make
as_user=True
default to avoid invalid argument error
Delete Message Files and Replies
- add a new
.files
field toSlackMessage
containing all the files attached to the message - add new options to
SlackMessage.delete
files=True
will also delete attached files,replies=True
does the same thing for the replies aka. thread.
Thus, deleting everything possible should be reduced to:
s = SlackCleaner2(TOKEN)
for msg in s.msgs():
msg.delete(files=True, replies=True)