discord: option to add/remove role on enable/disable/deletion

in Settings > Discord, shown when a role is selected in "Apply Role".
The discord housekeeping daemon should pick up users deleted outide of
jfa-go too, so users who delete their own accounts should have their
roles removed (periodically).
This commit is contained in:
Harvey Tindall
2024-08-04 15:37:01 +01:00
parent 44311162a6
commit ffd46ff190
5 changed files with 42 additions and 3 deletions
+9
View File
@@ -1120,6 +1120,15 @@
"value": "",
"description": "Add the selected role to a user when they sign up."
},
"disable_enable_role": {
"name": "Remove/add role on user enable/disable/deletion",
"required": false,
"requires_restart": true,
"depends_true": "apply_role",
"type": "bool",
"value": false,
"description": "When a user is disabled or deleted, remove the Discord role, and when re-enabled, add it back."
},
"language": {
"name": "Language",
"required": false,