diff options
author | 2022-02-24 21:14:35 +0200 | |
---|---|---|
committer | 2022-02-24 21:14:35 +0200 | |
commit | a2fcfdf8fd80fc4cfd89be19ffb18a3c1799d2cb (patch) | |
tree | 1f25d2a8dc6919ca012ec3a71969c0e22ef548df /pydis_site | |
parent | Extensions list is ALLOW, not DENY (diff) |
Create placeholder value for dm embed content in ext list
Some value is needed to signal the bot a message should be sent for a blocked extension. The value itself will be changed at runtime, but this allows avoiding the bot code delving into the exact API response format.
Diffstat (limited to 'pydis_site')
-rw-r--r-- | pydis_site/apps/api/migrations/0079_new_filter_schema.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pydis_site/apps/api/migrations/0079_new_filter_schema.py b/pydis_site/apps/api/migrations/0079_new_filter_schema.py index 4728ea91..58ed0025 100644 --- a/pydis_site/apps/api/migrations/0079_new_filter_schema.py +++ b/pydis_site/apps/api/migrations/0079_new_filter_schema.py @@ -44,7 +44,7 @@ def forward(apps: Apps, schema_editor: BaseDatabaseSchemaEditor) -> None: bypass_roles=["Helpers"], enabled=True, dm_content=dm_content, - dm_embed="", + dm_embed="" if name != "FILE_FORMAT" else "*Defined at runtime.*", infraction_type="", infraction_reason="", infraction_duration=timedelta(seconds=0), |