From 4e855a17bc364e1bb0ff659597b667806f1ac39b Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Mon, 2 Mar 2026 14:31:36 +0800 Subject: [PATCH] fix: update Discord command registration descriptions and hints in config metadata --- astrbot/core/config/default.py | 4 ++-- .../src/i18n/locales/en-US/features/config-metadata.json | 3 ++- .../src/i18n/locales/zh-CN/features/config-metadata.json | 3 ++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/astrbot/core/config/default.py b/astrbot/core/config/default.py index 21e4b1a8a..d5ecb4398 100644 --- a/astrbot/core/config/default.py +++ b/astrbot/core/config/default.py @@ -395,7 +395,6 @@ CONFIG_METADATA_2 = { "discord_token": "", "discord_proxy": "", "discord_command_register": True, - "discord_guild_id_for_debug": "", "discord_activity_name": "", }, "Misskey": { @@ -755,7 +754,8 @@ CONFIG_METADATA_2 = { "hint": "可选的代理地址:http://ip:port", }, "discord_command_register": { - "description": "是否自动将插件指令注册为 Discord 斜杠指令", + "description": "注册 Discord 指令", + "hint": "启用后,自动将插件指令注册为 Discord 斜杠指令", "type": "bool", }, "discord_activity_name": { diff --git a/dashboard/src/i18n/locales/en-US/features/config-metadata.json b/dashboard/src/i18n/locales/en-US/features/config-metadata.json index 2f7db9b42..b59774ee8 100644 --- a/dashboard/src/i18n/locales/en-US/features/config-metadata.json +++ b/dashboard/src/i18n/locales/en-US/features/config-metadata.json @@ -370,7 +370,8 @@ "hint": "Optional Discord activity name. Leave empty to disable." }, "discord_command_register": { - "description": "Auto-register plugin commands as Discord slash commands" + "description": "Register Discord slash commands", + "hint": "When enabled, AstrBot will automatically register plugin commands as Discord slash commands" }, "discord_proxy": { "description": "Discord Proxy URL", diff --git a/dashboard/src/i18n/locales/zh-CN/features/config-metadata.json b/dashboard/src/i18n/locales/zh-CN/features/config-metadata.json index 57e092960..4bd3e4260 100644 --- a/dashboard/src/i18n/locales/zh-CN/features/config-metadata.json +++ b/dashboard/src/i18n/locales/zh-CN/features/config-metadata.json @@ -373,7 +373,8 @@ "hint": "可选的 Discord 活动名称。留空则不设置活动。" }, "discord_command_register": { - "description": "是否自动将插件指令注册为 Discord 斜杠指令" + "description": "注册 Discord 指令", + "hint": "启用后,自动将插件指令注册为 Discord 斜杠指令" }, "discord_proxy": { "description": "Discord 代理地址",