You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(config): mark every unset field as default, including empty lists
The /config "default" marker keyed on isDefault, which was true only for an
unset field that *declares* a defaultValue — so an unset list with no default
(e.g. thread-creator's channels) showed "—" with no marker. Key it on !isSet
instead: any field the admin hasn't set is flagged. This also makes the marker
the exact complement of the reset picker (set ⟺ resettable ⟺ no marker). The
now-unused isDefault is removed.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: docs/site/en/guide/localization.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -63,7 +63,7 @@ The schema's `defaultValue` stays the English fallback. Defaults are **not persi
63
63
64
64
Only `STRING` fields are localized this way. Enum defaults are stored identifiers (not display text) and are returned verbatim, as are numbers, booleans and lists.
65
65
66
-
In the `/config` panel, a value still served by its defaultis flagged with a `config.defaultSuffix` marker (`_(default)_`), so an admin can tell at a glance what has actually been set. `ConfigProvider.isDefault(key)` exposes the same distinction in code.
66
+
In the `/config` panel, any field the admin hasn't set — showing a default, or nothing for a field without one — is flagged with a `config.defaultSuffix` marker (`_(default)_`), so they can tell at a glance what has actually been changed. `ConfigProvider.isSet(key)` exposes the same distinction in code.
67
67
68
68
> [!NOTE]
69
69
> Guilds whose config predates this mechanism keep whatever default was already
Copy file name to clipboardExpand all lines: docs/site/fr/guide/localisation.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -63,7 +63,7 @@ Le `defaultValue` du schéma reste le repli anglais. Les défauts ne sont **pas
63
63
64
64
Seuls les champs `STRING` sont localisés ainsi. Les défauts d'enum sont des identifiants stockés (pas du texte affichable) et sont renvoyés tels quels, comme les nombres, booléens et listes.
65
65
66
-
Dans le panneau `/config`, une valeur encore servie par son défautest signalée par un marqueur `config.defaultSuffix` (`_(par défaut)_`), pour voir d'un coup d'œil ce qui a réellement été configuré. `ConfigProvider.isDefault(key)` expose la même distinction côté code.
66
+
Dans le panneau `/config`, tout champ que l'admin n'a pas défini — affichant un défaut, ou rien pour un champ qui n'en a pas — est signalé par un marqueur `config.defaultSuffix` (`_(par défaut)_`), pour voir d'un coup d'œil ce qui a réellement été modifié. `ConfigProvider.isSet(key)` expose la même distinction côté code.
67
67
68
68
> [!NOTE]
69
69
> Les serveurs dont la config est antérieure à ce mécanisme conservent le défaut
0 commit comments