aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/api/models/bot
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2020-05-28 08:28:03 +0300
committerGravatar GitHub <[email protected]>2020-05-28 08:28:03 +0300
commit8eb69db369c232e668270a25717323370883bb7d (patch)
treeb5e1d81ebabe20ce72b5ce961d326f991206ec28 /pydis_site/apps/api/models/bot
parentOT: Replace help text of `used` field (diff)
parentMerge pull request #353 from python-discord/post-game-jam (diff)
Merge branch 'master' into off-topic-non-random
Diffstat (limited to 'pydis_site/apps/api/models/bot')
-rw-r--r--pydis_site/apps/api/models/bot/bot_setting.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pydis_site/apps/api/models/bot/bot_setting.py b/pydis_site/apps/api/models/bot/bot_setting.py
index b1c3e47c..8d48eac7 100644
--- a/pydis_site/apps/api/models/bot/bot_setting.py
+++ b/pydis_site/apps/api/models/bot/bot_setting.py
@@ -9,6 +9,7 @@ def validate_bot_setting_name(name: str) -> None:
"""Raises a ValidationError if the given name is not a known setting."""
known_settings = (
'defcon',
+ 'news',
)
if name not in known_settings: