Skip to content

Commit cdda92c

Browse files
authored
Merge pull request #281 from python-discord/jb3/components/vote-field
Add new vote question type
2 parents ae2d6cc + fe78f9b commit cdda92c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

backend/constants.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
"range",
4444
"section",
4545
"timezone",
46+
"vote",
4647
]
4748

4849
REQUIRED_QUESTION_TYPE_DATA = {
@@ -61,6 +62,9 @@
6162
"section": {
6263
"text": str,
6364
},
65+
"vote": {
66+
"options": list,
67+
},
6468
}
6569

6670
DISCORD_API_BASE_URL = "https://discord.com/api/v8"

0 commit comments

Comments
 (0)