diff options
| author | 2024-07-11 02:36:30 +0100 | |
|---|---|---|
| committer | 2024-07-11 02:36:30 +0100 | |
| commit | cdda92c9c2ee1c1df74817bd0921acd5705c4fce (patch) | |
| tree | c51c2bd23bbd5edc02547267fb38d6441fb1f980 | |
| parent | Move unittest filtering to the Form.dict() function (diff) | |
| parent | Add new vote question type (diff) | |
Merge pull request #281 from python-discord/jb3/components/vote-field
Add new vote question type
Diffstat (limited to '')
| -rw-r--r-- | backend/constants.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/backend/constants.py b/backend/constants.py index 8089077..21db4d4 100644 --- a/backend/constants.py +++ b/backend/constants.py @@ -43,6 +43,7 @@ QUESTION_TYPES = [ "range", "section", "timezone", + "vote", ] REQUIRED_QUESTION_TYPE_DATA = { @@ -61,6 +62,9 @@ REQUIRED_QUESTION_TYPE_DATA = { "section": { "text": str, }, + "vote": { + "options": list, + }, } DISCORD_API_BASE_URL = "https://discord.com/api/v8" |