Skip to content

Commit 4e855a1

Browse files
committed
fix: update Discord command registration descriptions and hints in config metadata
1 parent f2fc724 commit 4e855a1

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

astrbot/core/config/default.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,6 @@ class ChatProviderTemplate(TypedDict):
395395
"discord_token": "",
396396
"discord_proxy": "",
397397
"discord_command_register": True,
398-
"discord_guild_id_for_debug": "",
399398
"discord_activity_name": "",
400399
},
401400
"Misskey": {
@@ -755,7 +754,8 @@ class ChatProviderTemplate(TypedDict):
755754
"hint": "可选的代理地址:http://ip:port",
756755
},
757756
"discord_command_register": {
758-
"description": "是否自动将插件指令注册为 Discord 斜杠指令",
757+
"description": "注册 Discord 指令",
758+
"hint": "启用后,自动将插件指令注册为 Discord 斜杠指令",
759759
"type": "bool",
760760
},
761761
"discord_activity_name": {

dashboard/src/i18n/locales/en-US/features/config-metadata.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,8 @@
370370
"hint": "Optional Discord activity name. Leave empty to disable."
371371
},
372372
"discord_command_register": {
373-
"description": "Auto-register plugin commands as Discord slash commands"
373+
"description": "Register Discord slash commands",
374+
"hint": "When enabled, AstrBot will automatically register plugin commands as Discord slash commands"
374375
},
375376
"discord_proxy": {
376377
"description": "Discord Proxy URL",

dashboard/src/i18n/locales/zh-CN/features/config-metadata.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,8 @@
373373
"hint": "可选的 Discord 活动名称。留空则不设置活动。"
374374
},
375375
"discord_command_register": {
376-
"description": "是否自动将插件指令注册为 Discord 斜杠指令"
376+
"description": "注册 Discord 指令",
377+
"hint": "启用后,自动将插件指令注册为 Discord 斜杠指令"
377378
},
378379
"discord_proxy": {
379380
"description": "Discord 代理地址",

0 commit comments

Comments
 (0)