Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add filter for exclusing messages with files / attachments #642

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ParkerK
Copy link

@ParkerK ParkerK commented Jul 12, 2024

I had a use case where I wanted to EXCLUDE any messages with files/attachments from being deleted. The discord search API does not support this, so I added functionality by filtering out the messages locally.

I've also added validation to ensure that the user doesn't check both hasFile and hasNoFile, as that would just result in nothing happening

I've manually tested this to ensure that the new filter option works as intended, and the pre-existing ones still work as well.

Updated UI:
image
Filter validation:
image

@ParkerK
Copy link
Author

ParkerK commented Jul 12, 2024

It looks like this was also requested in #64 , so this would add that requested feature

kazuki388 added a commit to kazuki388/Undiscord that referenced this pull request Nov 15, 2024
- Resolved ESLint issues and addressed invalid header warnings (victornpb#663).
- Implemented autofill for thread channel IDs and restricted message deletion to the corresponding thread (victornpb#610).
- Clarified that omitting a time will disable the date filter functionality (victornpb#643).
- Added a filter to exclude messages containing files or attachments (victornpb#642).
- Fixed various autofill issues (victornpb#631).
- Stopped execution when there are remaining messages (victornpb#619).
- Addressed API errors related to the Wipe Archive Feature (50024 - 50021) (victornpb#603).
- Implemented a workaround for slow search index refreshing (victornpb#584).
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.

1 participant