Skip to content

Add an option to preserve pinned messages#34

Open
fgibaux wants to merge 1 commit intokfei:masterfrom
fgibaux:master
Open

Add an option to preserve pinned messages#34
fgibaux wants to merge 1 commit intokfei:masterfrom
fgibaux:master

Conversation

@fgibaux
Copy link
Copy Markdown

@fgibaux fgibaux commented Feb 17, 2017

Add a --keeppinned option to fix #33


# Delete messages on certain channel
clean_channel(_channel_id, time_range, _user_id, args.bot)
clean_channel(_channel_id, time_range, _user_id, args.bot, args.keep_pinned)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like to see this method get called a bit safer -- by using the named args.

clean_channel(_channel_id, time_range, user_id=_user_id, bot=args.bot, keep_pinned=args.keep_pinned)

sgratzl added a commit to sgratzl/slack-cleaner that referenced this pull request Sep 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Request: exclude pinned message from deletion

2 participants