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