From c29a08ec347967eded18d9254f28df71e69d8329 Mon Sep 17 00:00:00 2001 From: Joe Banks Date: Fri, 8 Aug 2025 23:24:28 +0100 Subject: Add UNIQUE_RESPONDER form feature --- SCHEMA.md | 1 + backend/constants.py | 1 + 2 files changed, 2 insertions(+) diff --git a/SCHEMA.md b/SCHEMA.md index 1d2e4e2..d0ff099 100644 --- a/SCHEMA.md +++ b/SCHEMA.md @@ -37,6 +37,7 @@ In this document: | `DISABLE_ANTISPAM` | Disable the anti-spam checks from running on a form submission. | | `WEBHOOK_ENABLED` | The form should notify the webhook. Has no effect if no webhook is set. | | `ASSIGN_ROLE` | The form should assign role to user. Requires `REQUIRES_LOGIN`. | +| `UNIQUE_RESPONDER` | Only one response allowed per Discord ID. Requires `REQUIRES_LOGIN`. | ### Webhooks Discord webhooks to send information upon form submission. diff --git a/backend/constants.py b/backend/constants.py index 1e55cd2..17f08b9 100644 --- a/backend/constants.py +++ b/backend/constants.py @@ -83,6 +83,7 @@ class FormFeatures(Enum): DISABLE_ANTISPAM = "DISABLE_ANTISPAM" WEBHOOK_ENABLED = "WEBHOOK_ENABLED" ASSIGN_ROLE = "ASSIGN_ROLE" + UNIQUE_RESPONDER = "UNIQUE_RESPONDER" class WebHook(Enum): -- cgit v1.2.3