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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃挕 Archive or delete threads automatically when users delete original message #68

Closed
MarcusOtter opened this issue Feb 4, 2022 · 4 comments 路 Fixed by #250
Closed
Labels
improvement 馃挕 Improvement suggestion

Comments

@MarcusOtter
Copy link
Owner

MarcusOtter commented Feb 4, 2022

Is your request for improvement related to a problem? Please describe.
From Muhymin#6005 on Discord:

Some people ask questions in the support channel and then remove the original message. Is it possible to delete the thread automatically as the user removes his original message??

Describe the solution you'd like
When the parent message is deleted (by any means, banning user included):

If (the thread has no messages from anyone except for the bot AND the bot has the permissions to delete the thread): delete the thread.

If (the thread has messages OR the bot does not have permissions to delete the thread): archive the thread

Describe alternatives you've considered
N/A

Additional context
Perhaps this means that we don't need the code we implemented for #49, and instead we can solve #26

@MarcusOtter MarcusOtter added the improvement 馃挕 Improvement suggestion label Feb 4, 2022
@MarcusOtter MarcusOtter changed the title 馃挕 Improvement: Archive or delete threads automatically when users delete original message 馃挕 Archive or delete threads automatically when users delete original message Feb 6, 2022
@c43721
Copy link
Contributor

c43721 commented Mar 15, 2022

wow I didn't see this

@MarcusOtter
Copy link
Owner Author

MarcusOtter commented Mar 17, 2022

Some users have said they would like this to be configurable

When message deleted options:

  • Delete thread if empty, archive if not (DEFAULT)
  • Always archive
  • Always delete
  • Do nothing

@MarcusOtter
Copy link
Owner Author

Fun fact: This is exactly how Discord chose to implement forums. If a user tries to delete their post, they are allowed to do so (unlike threads), but only if there are no responses from users. If there are responses, they are only allowed to delete their original message.

image

@mnkrome
Copy link

mnkrome commented Aug 13, 2022

Oh, glad its already suggested. It would be amazing if implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement 馃挕 Improvement suggestion
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants