Skip to content

Commit c29a08e

Browse files
committed
Add UNIQUE_RESPONDER form feature
1 parent 111c063 commit c29a08e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

SCHEMA.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ In this document:
3737
| `DISABLE_ANTISPAM` | Disable the anti-spam checks from running on a form submission. |
3838
| `WEBHOOK_ENABLED` | The form should notify the webhook. Has no effect if no webhook is set. |
3939
| `ASSIGN_ROLE` | The form should assign role to user. Requires `REQUIRES_LOGIN`. |
40+
| `UNIQUE_RESPONDER` | Only one response allowed per Discord ID. Requires `REQUIRES_LOGIN`. |
4041

4142
### Webhooks
4243
Discord webhooks to send information upon form submission.

backend/constants.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ class FormFeatures(Enum):
8383
DISABLE_ANTISPAM = "DISABLE_ANTISPAM"
8484
WEBHOOK_ENABLED = "WEBHOOK_ENABLED"
8585
ASSIGN_ROLE = "ASSIGN_ROLE"
86+
UNIQUE_RESPONDER = "UNIQUE_RESPONDER"
8687

8788

8889
class WebHook(Enum):

0 commit comments

Comments
 (0)