Skip to content

Commit 3255991

Browse files
authored
Merge pull request #92 from QingFeng-awa/fix/update-outdated-development-instructions
更新过时的插件配置文档
2 parents 82779b3 + d8f0425 commit 3255991

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

en/dev/star/guides/plugin-config.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,4 @@ class ConfigPlugin(Star):
8686

8787
## Configuration Updates
8888

89-
If you update the Schema when releasing different versions, note that AstrBot will recursively check the Schema's configuration items. If it finds that a configuration item is missing from the configuration file, it will automatically add the default value. However, AstrBot will not delete **extra** configuration items from the configuration file, even if this configuration item doesn't exist in the new Schema (you deleted this configuration item from the new Schema).
89+
When you update the Schema across different versions, AstrBot will recursively inspect the configuration items in the Schema, automatically adding default values for missing items and removing those that no longer exist.

zh/dev/star/guides/plugin-config.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,4 @@ class ConfigPlugin(Star):
8686

8787
## 配置更新
8888

89-
如果您在发布不同版本时更新了 Schema,请注意,AstrBot 会递归检查 Schema 的配置项,如果发现配置文件中缺失了某个配置项,会自动添加默认值。但是 AstrBot 不会删除配置文件中**多余的**配置项,即使这个配置项在新的 Schema 中不存在(您在新的 Schema 中删除了这个配置项)
89+
您在发布不同版本更新 Schema 时,AstrBot 会递归检查 Schema 的配置项,自动为缺失的配置项添加默认值、移除不存在的配置项

0 commit comments

Comments
 (0)