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 clean-departed command #300

Merged
merged 3 commits into from
Jul 9, 2022
Merged

Conversation

versx
Copy link
Owner

@versx versx commented Jul 7, 2022

Adds the clean-departed Discord command from v4 with some changes and improvements.

Run .clean-departed true to only disable the expired donor subscriptions otherwise if false is passed as an argument, all of the user's subscriptions will be deleted from the database. Defaults to true if nothing is passed and only .clean-departed is run.
If the user is not in the Discord server anymore then all of their subscriptions will be deleted regardless of the argument value passed.

Additionally, if the user is still in the Discord server and geofenceRoles.enabled, geofenceRoles.autoRemove, and geofenceRoles.requiresDonorRole are set to true in the Discord server config, all of the assigned area/geofence roles will also be removed from the user if they are not a donor/supporter anymore.

@versx versx added the enhancement New feature or request label Jul 9, 2022
@versx versx merged commit 9d7d5ef into v5-rewrite Jul 9, 2022
@versx versx deleted the v5-rewrite_feature_clean_departed branch July 17, 2022 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant