更新Discord模块支持互动消息

This commit is contained in:
HankunYu
2025-12-22 20:00:06 +00:00
parent 355563244c
commit decd50cb40
4 changed files with 41 additions and 41 deletions
@@ -366,31 +366,31 @@ function onClose() {
</VCol> </VCol>
<VCol cols="12" md="6"> <VCol cols="12" md="6">
<VTextField <VTextField
v-model="notificationInfo.config.DISCORD_WEBHOOK_URL" v-model="notificationInfo.config.DISCORD_BOT_TOKEN"
:label="t('notification.discord.webhookUrl')" :label="t('notification.discord.botToken')"
:hint="t('notification.discord.webhookUrlHint')" :hint="t('notification.discord.botTokenHint')"
persistent-hint persistent-hint
prepend-inner-icon="mdi-webhook" prepend-inner-icon="mdi-key-variant"
/> />
</VCol> </VCol>
<VCol cols="12" md="6"> <VCol cols="12" md="6">
<VTextField <VTextField
v-model="notificationInfo.config.DISCORD_USERNAME" v-model="notificationInfo.config.DISCORD_GUILD_ID"
:label="t('notification.discord.username')" :label="t('notification.discord.guildId')"
:placeholder="t('notification.discord.usernamePlaceholder')" :placeholder="t('notification.discord.guildIdPlaceholder')"
:hint="t('notification.discord.usernameHint')" :hint="t('notification.discord.guildIdHint')"
persistent-hint persistent-hint
prepend-inner-icon="mdi-account" prepend-inner-icon="mdi-pound"
/> />
</VCol> </VCol>
<VCol cols="12" md="6"> <VCol cols="12" md="6">
<VTextField <VTextField
v-model="notificationInfo.config.DISCORD_AVATAR_URL" v-model="notificationInfo.config.DISCORD_CHANNEL_ID"
:label="t('notification.discord.avatarUrl')" :label="t('notification.discord.channelId')"
:placeholder="t('notification.discord.avatarUrlPlaceholder')" :placeholder="t('notification.discord.channelIdPlaceholder')"
:hint="t('notification.discord.avatarUrlHint')" :hint="t('notification.discord.channelIdHint')"
persistent-hint persistent-hint
prepend-inner-icon="mdi-image-outline" prepend-inner-icon="mdi-pound-box"
/> />
</VCol> </VCol>
</VRow> </VRow>
+9 -9
View File
@@ -460,15 +460,15 @@ export default {
}, },
discord: { discord: {
name: 'Discord', name: 'Discord',
webhookUrl: 'Webhook URL', botToken: 'Bot Token',
webhookUrlHint: 'Discord Webhook URL, format: https://discord.com/api/webhooks/...', botTokenHint: 'Discord Bot Token (enable Message Content Intent in Dev Portal)',
webhookUrlRequired: 'Webhook URL is required', botTokenRequired: 'Bot Token is required',
username: 'Username', guildId: 'Guild ID',
usernameHint: 'Custom username for webhook messages (optional)', guildIdHint: 'Optional, restrict to a specific guild; leave blank to use any joined guild',
usernamePlaceholder: 'MoviePilot', guildIdPlaceholder: '123456789012345678',
avatarUrl: 'Avatar URL', channelId: 'Channel ID',
avatarUrlHint: 'Custom avatar image URL (optional)', channelIdHint: 'Optional, default broadcast channel; leave blank to auto-pick a writable channel',
avatarUrlPlaceholder: 'https://example.com/avatar.png', channelIdPlaceholder: '123456789012345678',
}, },
synologychat: { synologychat: {
name: 'Synology Chat', name: 'Synology Chat',
+9 -9
View File
@@ -458,15 +458,15 @@ export default {
}, },
discord: { discord: {
name: 'Discord', name: 'Discord',
webhookUrl: 'Webhook URL', botToken: 'Bot Token',
webhookUrlHint: 'Discord Webhook URL,格式:https://discord.com/api/webhooks/...', botTokenHint: 'Discord Bot Token(需在开发者后台开启 Message Content Intent',
webhookUrlRequired: 'Webhook URL不能为空', botTokenRequired: 'Bot Token不能为空',
username: '用户名', guildId: '服务器 ID',
usernameHint: '自定义消息显示的用户名(可选)', guildIdHint: '可选,限制使用的服务器;为空则使用已加入的任意服务器',
usernamePlaceholder: 'MoviePilot', guildIdPlaceholder: '123456789012345678',
avatarUrl: '头像URL', channelId: '频道 ID',
avatarUrlHint: '自定义头像图片URL(可选)', channelIdHint: '可选,默认广播频道;为空则自动选择可发送消息的频道',
avatarUrlPlaceholder: 'https://example.com/avatar.png', channelIdPlaceholder: '123456789012345678',
}, },
synologychat: { synologychat: {
name: 'Synology Chat', name: 'Synology Chat',
+9 -9
View File
@@ -449,15 +449,15 @@ export default {
}, },
discord: { discord: {
name: 'Discord', name: 'Discord',
webhookUrl: 'Webhook URL', botToken: 'Bot Token',
webhookUrlHint: 'Discord Webhook URL,格式:https://discord.com/api/webhooks/...', botTokenHint: 'Discord Bot Token(需在開發者後台開啟 Message Content Intent',
webhookUrlRequired: 'Webhook URL不能為空', botTokenRequired: 'Bot Token不能為空',
username: '用戶名', guildId: '伺服器 ID',
usernameHint: '自定義消息顯示的用戶名(可選)', guildIdHint: '可選,限制使用的伺服器;空白則使用已加入的任意伺服器',
usernamePlaceholder: 'MoviePilot', guildIdPlaceholder: '123456789012345678',
avatarUrl: '頭像URL', channelId: '頻道 ID',
avatarUrlHint: '自定義頭像圖片URL(可選)', channelIdHint: '可選,預設廣播頻道;空白則自動選擇可發送消息的頻道',
avatarUrlPlaceholder: 'https://example.com/avatar.png', channelIdPlaceholder: '123456789012345678',
}, },
synologychat: { synologychat: {
name: 'Synology Chat', name: 'Synology Chat',