@@ -814,7 +814,7 @@ private FrameworkElement BuildBody(ChannelRecord record)
814814 stack . Children . Add ( BuildLinkingPlaceholder ( record ) ) ;
815815
816816 // Configuration section — inline credential form for channels we have
817- // explicit field definitions for (Telegram bot token, Discord webhook ,
817+ // explicit field definitions for (Telegram/Discord bot tokens ,
818818 // Slack tokens, Google Chat webhook, Nostr key/relays).
819819 //
820820 // For configured channels the section header reads "Replace
@@ -1067,7 +1067,7 @@ private static (string? Text, string? Url) ResolveExternalHelpLink(string channe
10671067 "whatsapp" => ( LocalizationHelper . GetString ( "ChannelsPage_HelpWhatsApp" ) , "https://faq.whatsapp.com/378279004439436/" ) ,
10681068 "signal" => ( LocalizationHelper . GetString ( "ChannelsPage_HelpSignal" ) , "https://support.signal.org/hc/en-us/articles/360007320551" ) ,
10691069 "telegram" => ( LocalizationHelper . GetString ( "ChannelsPage_HelpTelegram" ) , "https://core.telegram.org/bots/features#botfather" ) ,
1070- "discord" => ( LocalizationHelper . GetString ( "ChannelsPage_HelpDiscord" ) , "https://support. discord.com/hc/en-us/articles/228383668 " ) ,
1070+ "discord" => ( LocalizationHelper . GetString ( "ChannelsPage_HelpDiscord" ) , "https://discord.com/developers/applications " ) ,
10711071 "googlechat" => ( LocalizationHelper . GetString ( "ChannelsPage_HelpGoogleChat" ) , "https://developers.google.com/chat/how-tos/webhooks" ) ,
10721072 "slack" => ( LocalizationHelper . GetString ( "ChannelsPage_HelpSlack" ) , "https://api.slack.com/apps" ) ,
10731073 "nostr" => ( LocalizationHelper . GetString ( "ChannelsPage_HelpNostr" ) , "https://nostr.com/" ) ,
@@ -1160,7 +1160,7 @@ private sealed record ConfigField(
11601160 /// Per-channel inline-form schema. Fields were validated against the
11611161 /// gateway test fixtures (src/cli/config-cli.test.ts and related tests
11621162 /// confirm channels.telegram.botToken, channels.slack.botToken/signingSecret,
1163- /// channels.discord.webhookUrl , etc.). Returns null for channels without an
1163+ /// channels.discord.token , etc.). Returns null for channels without an
11641164 /// inline form — those still get the "Open Config page" stub.
11651165 /// </summary>
11661166 private static IReadOnlyList < ConfigField > ? ResolveConfigFields ( string channelId ) =>
@@ -1179,12 +1179,12 @@ private sealed record ConfigField(
11791179 "discord" => new [ ]
11801180 {
11811181 new ConfigField (
1182- "channels.discord.webhookUrl " ,
1183- LocalizationHelper . GetString ( "ChannelsPage_FieldWebhookUrl " ) ,
1184- "https://discord.com/api/webhooks/..." ,
1182+ "channels.discord.token " ,
1183+ LocalizationHelper . GetString ( "ChannelsPage_FieldDiscordBotToken " ) ,
1184+ LocalizationHelper . GetString ( "ChannelsPage_PlaceholderDiscordBotToken" ) ,
11851185 Sensitive : true ,
11861186 Required : true ,
1187- HelpText : LocalizationHelper . GetString ( "ChannelsPage_HelpWebhookDiscord " ) ) ,
1187+ HelpText : LocalizationHelper . GetString ( "ChannelsPage_HelpDiscordBotToken " ) ) ,
11881188 } ,
11891189 "googlechat" => new [ ]
11901190 {
@@ -2357,7 +2357,7 @@ private static IReadOnlyList<string> BuildGenericSubtitleLines(ChannelRecord rec
23572357 {
23582358 "whatsapp" => "Link your phone — scan a QR to connect" ,
23592359 "telegram" => "Bot integration — paste your bot token to set up" ,
2360- "discord" => "Webhook integration — paste a Discord webhook URL " ,
2360+ "discord" => "Bot integration — paste your Discord bot token " ,
23612361 "googlechat" => "Webhook integration — paste a Google Chat webhook" ,
23622362 "slack" => "OAuth app — install a Slack app to connect" ,
23632363 "signal" => "Link your phone — scan a QR to connect" ,
0 commit comments