Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

💄 style(channel): give Discord's Message Content Intent its own step (#22829)

Rdmclin223677470fdb7
diff --git a/locales/ar/agent.json b/locales/ar/agent.json
index b30bee3504d..3f0081103ba 100644
--- a/locales/ar/agent.json
+++ b/locales/ar/agent.json
@@ -359,8 +359,6 @@
"channel.qq.webhookMigrationTitle": "النظر في الترقية إلى وضع WebSocket",
"channel.quickSetup.connect.desc": "يحفظ ما قمت بملئه أعلاه ويجعل الروبوت متصلاً بالإنترنت. يمكن تغيير كل شيء آخر لاحقًا.",
"channel.quickSetup.connect.title": "حفظ والاتصال",
- "channel.quickSetup.discord.bot.desc": "في صفحة الروبوت، قم بإعادة تعيين الرمز ونسخه، ثم قم بتفعيل نية محتوى الرسائل.",
- "channel.quickSetup.discord.bot.title": "احصل على رمز الروبوت واسمح بمحتوى الرسائل",
"channel.quickSetup.discord.create.desc": "في بوابة المطورين، انقر على تطبيق جديد وقم بتسميته.",
"channel.quickSetup.discord.create.title": "إنشاء تطبيق",
"channel.quickSetup.discord.credentials.desc": "كلاهما موجود في المعلومات العامة.",
diff --git a/locales/bg-BG/agent.json b/locales/bg-BG/agent.json
index 5be4cea90ff..9b413f5718f 100644
--- a/locales/bg-BG/agent.json
+++ b/locales/bg-BG/agent.json
@@ -359,8 +359,6 @@
"channel.qq.webhookMigrationTitle": "Обмислете миграция към режим WebSocket",
"channel.quickSetup.connect.desc": "Запазва попълненото по-горе и активира бота. Всичко останало може да бъде променено по-късно.",
"channel.quickSetup.connect.title": "Запази и свържи",
- "channel.quickSetup.discord.bot.desc": "На страницата на бота, нулирайте токена и го копирайте, след това включете Message Content Intent.",
- "channel.quickSetup.discord.bot.title": "Вземете токена на бота и разрешете съдържание на съобщения",
"channel.quickSetup.discord.create.desc": "В Developer Portal, кликнете върху New Application и го именувайте.",
"channel.quickSetup.discord.create.title": "Създайте приложение",
"channel.quickSetup.discord.credentials.desc": "И двете са в General Information.",
diff --git a/locales/de-DE/agent.json b/locales/de-DE/agent.json
index 8d4897fb760..0f5620f2b3b 100644
--- a/locales/de-DE/agent.json
+++ b/locales/de-DE/agent.json
@@ -359,8 +359,6 @@
"channel.qq.webhookMigrationTitle": "Erwägen Sie die Migration zum WebSocket-Modus",
"channel.quickSetup.connect.desc": "Speichert, was Sie oben ausgefüllt haben, und bringt den Bot online. Alles andere kann später geändert werden.",
"channel.quickSetup.connect.title": "Speichern und verbinden",
- "channel.quickSetup.discord.bot.desc": "Auf der Bot-Seite Token zurücksetzen und kopieren, dann die Nachrichteninhalts-Intent aktivieren.",
- "channel.quickSetup.discord.bot.title": "Holen Sie sich den Bot-Token und erlauben Sie Nachrichteninhalte",
"channel.quickSetup.discord.create.desc": "Im Entwicklerportal auf Neue Anwendung klicken und benennen.",
"channel.quickSetup.discord.create.title": "Eine Anwendung erstellen",
"channel.quickSetup.discord.credentials.desc": "Beide befinden sich unter Allgemeine Informationen.",
diff --git a/locales/en-US/agent.json b/locales/en-US/agent.json
index a06ae5a88eb..9acb0f195d8 100644
--- a/locales/en-US/agent.json
+++ b/locales/en-US/agent.json
@@ -359,12 +359,14 @@
"channel.qq.webhookMigrationTitle": "Consider migrating to WebSocket mode",
"channel.quickSetup.connect.desc": "Saves what you filled in above and brings the bot online. Everything else can be changed later.",
"channel.quickSetup.connect.title": "Save and connect",
- "channel.quickSetup.discord.bot.desc": "On the Bot page, Reset Token and copy it, then turn on Message Content Intent.",
- "channel.quickSetup.discord.bot.title": "Get the bot token and allow message content",
+ "channel.quickSetup.discord.bot.desc": "On the Bot page, click Reset Token and copy it.",
+ "channel.quickSetup.discord.bot.title": "Get the bot token",
"channel.quickSetup.discord.create.desc": "In the Developer Portal, click New Application and name it.",
"channel.quickSetup.discord.create.title": "Create an application",
"channel.quickSetup.discord.credentials.desc": "Both are on General Information.",
"channel.quickSetup.discord.credentials.title": "Copy the Application ID and Public Key",
+ "channel.quickSetup.discord.intent.desc": "On the Bot page, under Privileged Gateway Intents, turn on Message Content Intent and save. Without it, the bot can't read messages.",
+ "channel.quickSetup.discord.intent.title": "Turn on Message Content Intent",
"channel.quickSetup.discord.invite.desc": "The invite link already carries the permissions the bot needs. For a private channel, also add the bot in that channel's Settings → Permissions.",
"channel.quickSetup.discord.invite.title": "Invite the bot to your server",
"channel.quickSetup.feishu.bot.desc": "Under App Capabilities, add Bot.",
diff --git a/locales/es-ES/agent.json b/locales/es-ES/agent.json
index 758ec600273..9015cca7005 100644
--- a/locales/es-ES/agent.json
+++ b/locales/es-ES/agent.json
@@ -359,8 +359,6 @@
"channel.qq.webhookMigrationTitle": "Considere migrar al modo WebSocket",
"channel.quickSetup.connect.desc": "Guarda lo que completaste arriba y pone el bot en línea. Todo lo demás se puede cambiar más tarde.",
"channel.quickSetup.connect.title": "Guardar y conectar",
- "channel.quickSetup.discord.bot.desc": "En la página del Bot, restablece el token y cópialo, luego activa la intención de contenido de mensajes.",
- "channel.quickSetup.discord.bot.title": "Obtén el token del bot y permite el contenido de mensajes",
"channel.quickSetup.discord.create.desc": "En el Portal de Desarrolladores, haz clic en Nueva Aplicación y asígnale un nombre.",
"channel.quickSetup.discord.create.title": "Crea una aplicación",
"channel.quickSetup.discord.credentials.desc": "Ambos están en Información General.",
diff --git a/locales/fa-IR/agent.json b/locales/fa-IR/agent.json
index 3dd5a435cd8..cf17e679482 100644
--- a/locales/fa-IR/agent.json
+++ b/locales/fa-IR/agent.json
@@ -359,8 +359,6 @@
"channel.qq.webhookMigrationTitle": "مهاجرت به حالت وب‌سوکت را در نظر بگیرید",
"channel.quickSetup.connect.desc": "آنچه را که در بالا پر کرده‌اید ذخیره می‌کند و ربات را آنلاین می‌کند. بقیه موارد را می‌توان بعداً تغییر داد.",
"channel.quickSetup.connect.title": "ذخیره و اتصال",
- "channel.quickSetup.discord.bot.desc": "در صفحه Bot، توکن را بازنشانی کرده و کپی کنید، سپس Message Content Intent را فعال کنید.",
- "channel.quickSetup.discord.bot.title": "توکن ربات را دریافت کنید و محتوای پیام را مجاز کنید",
"channel.quickSetup.discord.create.desc": "در Developer Portal، روی New Application کلیک کرده و نامی برای آن انتخاب کنید.",
"channel.quickSetup.discord.create.title": "یک برنامه ایجاد کنید",
"channel.quickSetup.discord.credentials.desc": "هر دو در General Information قرار دارند.",
diff --git a/locales/fr-FR/agent.json b/locales/fr-FR/agent.json
index 468197a678b..a44244fbc60 100644
--- a/locales/fr-FR/agent.json
+++ b/locales/fr-FR/agent.json
@@ -359,8 +359,6 @@
"channel.qq.webhookMigrationTitle": "Envisagez de migrer vers le mode WebSocket",
"channel.quickSetup.connect.desc": "Enregistre ce que vous avez rempli ci-dessus et met le bot en ligne. Tout le reste peut être modifié plus tard.",
"channel.quickSetup.connect.title": "Enregistrer et connecter",
- "channel.quickSetup.discord.bot.desc": "Sur la page Bot, réinitialisez le jeton et copiez-le, puis activez l'intention de contenu des messages.",
- "channel.quickSetup.discord.bot.title": "Obtenez le jeton du bot et autorisez le contenu des messages",
"channel.quickSetup.discord.create.desc": "Dans le portail développeur, cliquez sur Nouvelle application et nommez-la.",
"channel.quickSetup.discord.create.title": "Créer une application",
"channel.quickSetup.discord.credentials.desc": "Les deux se trouvent dans Informations générales.",
diff --git a/locales/it-IT/agent.json b/locales/it-IT/agent.json
index d00261cc4d4..dca358c7c01 100644
--- a/locales/it-IT/agent.json
+++ b/locales/it-IT/agent.json
@@ -359,8 +359,6 @@
"channel.qq.webhookMigrationTitle": "Valuta la migrazione alla modalità WebSocket",
"channel.quickSetup.connect.desc": "Salva ciò che hai compilato sopra e porta il bot online. Tutto il resto può essere modificato successivamente.",
"channel.quickSetup.connect.title": "Salva e connetti",
- "channel.quickSetup.discord.bot.desc": "Nella pagina Bot, reimposta il token e copialo, quindi attiva l'intento del contenuto dei messaggi.",
- "channel.quickSetup.discord.bot.title": "Ottieni il token del bot e consenti il contenuto dei messaggi",
"channel.quickSetup.discord.create.desc": "Nel Developer Portal, clicca su Nuova Applicazione e assegnale un nome.",
"channel.quickSetup.discord.create.title": "Crea un'applicazione",
"channel.quickSetup.discord.credentials.desc": "Entrambi si trovano in Informazioni Generali.",
diff --git a/locales/ja-JP/agent.json b/locales/ja-JP/agent.json
index fe0348c2f17..e44439d18c4 100644
--- a/locales/ja-JP/agent.json
+++ b/locales/ja-JP/agent.json
@@ -359,8 +359,6 @@
"channel.qq.webhookMigrationTitle": "WebSocket モードへの移行をご検討ください",
"channel.quickSetup.connect.desc": "上記で入力した内容を保存し、ボットをオンラインにします。他の設定は後で変更可能です。",
"channel.quickSetup.connect.title": "保存して接続",
- "channel.quickSetup.discord.bot.desc": "Botページで、トークンをリセットしてコピーし、メッセージコンテンツインテントをオンにします。",
- "channel.quickSetup.discord.bot.title": "ボットトークンを取得し、メッセージコンテンツを許可する",
"channel.quickSetup.discord.create.desc": "開発者ポータルで「新しいアプリケーション」をクリックし、名前を付けます。",
"channel.quickSetup.discord.create.title": "アプリケーションを作成する",
"channel.quickSetup.discord.credentials.desc": "どちらも「一般情報」にあります。",
diff --git a/locales/ko-KR/agent.json b/locales/ko-KR/agent.json
index 6ed0f778f79..cdc140a56f0 100644
--- a/locales/ko-KR/agent.json
+++ b/locales/ko-KR/agent.json
@@ -359,8 +359,6 @@
"channel.qq.webhookMigrationTitle": "WebSocket 모드로의 전환을 고려하세요",
"channel.quickSetup.connect.desc": "위에 입력한 내용을 저장하고 봇을 온라인으로 만듭니다. 나머지는 나중에 변경할 수 있습니다.",
"channel.quickSetup.connect.title": "저장하고 연결",
- "channel.quickSetup.discord.bot.desc": "봇 페이지에서 토큰을 재설정하고 복사한 다음, 메시지 콘텐츠 의도를 활성화하세요.",
- "channel.quickSetup.discord.bot.title": "봇 토큰을 가져오고 메시지 콘텐츠 허용",
"channel.quickSetup.discord.create.desc": "개발자 포털에서 새 애플리케이션을 클릭하고 이름을 지정하세요.",
"channel.quickSetup.discord.create.title": "애플리케이션 생성",
"channel.quickSetup.discord.credentials.desc": "둘 다 일반 정보에 있습니다.",
diff --git a/locales/nl-NL/agent.json b/locales/nl-NL/agent.json
index 32212051087..52947707fe5 100644
--- a/locales/nl-NL/agent.json
+++ b/locales/nl-NL/agent.json
@@ -359,8 +359,6 @@
"channel.qq.webhookMigrationTitle": "Overweeg om over te stappen op de WebSocket-modus",
"channel.quickSetup.connect.desc": "Slaat op wat je hierboven hebt ingevuld en brengt de bot online. Alles kan later worden gewijzigd.",
"channel.quickSetup.connect.title": "Opslaan en verbinden",
- "channel.quickSetup.discord.bot.desc": "Ga naar de Bot-pagina, reset de token en kopieer deze, en schakel vervolgens de Message Content Intent in.",
- "channel.quickSetup.discord.bot.title": "Verkrijg de bot-token en sta berichtinhoud toe",
"channel.quickSetup.discord.create.desc": "Klik in het Developer Portal op Nieuwe Applicatie en geef het een naam.",
"channel.quickSetup.discord.create.title": "Maak een applicatie",
"channel.quickSetup.discord.credentials.desc": "Beide zijn te vinden onder Algemene Informatie.",
diff --git a/locales/pl-PL/agent.json b/locales/pl-PL/agent.json
index 82962c3f9ae..9e13b96726c 100644
--- a/locales/pl-PL/agent.json
+++ b/locales/pl-PL/agent.json
@@ -359,8 +359,6 @@
"channel.qq.webhookMigrationTitle": "Rozważ migrację do trybu WebSocket",
"channel.quickSetup.connect.desc": "Zapisuje to, co wypełniłeś powyżej i uruchamia bota online. Wszystko inne można zmienić później.",
"channel.quickSetup.connect.title": "Zapisz i połącz",
- "channel.quickSetup.discord.bot.desc": "Na stronie Bota zresetuj token i skopiuj go, a następnie włącz Message Content Intent.",
- "channel.quickSetup.discord.bot.title": "Uzyskaj token bota i zezwól na treść wiadomości",
"channel.quickSetup.discord.create.desc": "W Developer Portal kliknij Nowa Aplikacja i nadaj jej nazwę.",
"channel.quickSetup.discord.create.title": "Utwórz aplikację",
"channel.quickSetup.discord.credentials.desc": "Oba znajdują się w Informacjach Ogólnych.",
diff --git a/locales/pt-BR/agent.json b/locales/pt-BR/agent.json
index a1c860060bc..7067ccb5ce1 100644
--- a/locales/pt-BR/agent.json
+++ b/locales/pt-BR/agent.json
@@ -359,8 +359,6 @@
"channel.qq.webhookMigrationTitle": "Considere migrar para o modo WebSocket",
"channel.quickSetup.connect.desc": "Salva o que você preencheu acima e coloca o bot online. Todo o resto pode ser alterado depois.",
"channel.quickSetup.connect.title": "Salvar e conectar",
- "channel.quickSetup.discord.bot.desc": "Na página do Bot, redefina o Token e copie-o, depois ative a Intenção de Conteúdo de Mensagem.",
- "channel.quickSetup.discord.bot.title": "Obtenha o token do bot e permita o conteúdo da mensagem",
"channel.quickSetup.discord.create.desc": "No Portal de Desenvolvedores, clique em Nova Aplicação e nomeie-a.",
"channel.quickSetup.discord.create.title": "Crie uma aplicação",
"channel.quickSetup.discord.credentials.desc": "Ambos estão em Informações Gerais.",
diff --git a/locales/ru-RU/agent.json b/locales/ru-RU/agent.json
index bdc9e988e13..c42447703cd 100644
--- a/locales/ru-RU/agent.json
+++ b/locales/ru-RU/agent.json
@@ -359,8 +359,6 @@
"channel.qq.webhookMigrationTitle": "Рекомендуем перейти на режим WebSocket",
"channel.quickSetup.connect.desc": "Сохраняет введенные выше данные и подключает бота. Все остальное можно изменить позже.",
"channel.quickSetup.connect.title": "Сохранить и подключить",
- "channel.quickSetup.discord.bot.desc": "На странице бота сбросьте токен и скопируйте его, затем включите намерение содержимого сообщений.",
- "channel.quickSetup.discord.bot.title": "Получите токен бота и разрешите содержимое сообщений",
"channel.quickSetup.discord.create.desc": "В Портале разработчика нажмите «Новое приложение» и назовите его.",
"channel.quickSetup.discord.create.title": "Создайте приложение",
"channel.quickSetup.discord.credentials.desc": "Оба находятся в разделе «Общая информация».",
diff --git a/locales/tr-TR/agent.json b/locales/tr-TR/agent.json
index 908f0660a4b..64c60f8d8be 100644
--- a/locales/tr-TR/agent.json
+++ b/locales/tr-TR/agent.json
@@ -359,8 +359,6 @@
"channel.qq.webhookMigrationTitle": "WebSocket moduna geçmeyi düşünün",
"channel.quickSetup.connect.desc": "Yukarıda doldurduğunuz bilgileri kaydeder ve botu çevrimiçi hale getirir. Geri kalan her şey daha sonra değiştirilebilir.",
"channel.quickSetup.connect.title": "Kaydet ve bağlan",
- "channel.quickSetup.discord.bot.desc": "Bot sayfasında, Jetonu Sıfırla'ya tıklayın ve kopyalayın, ardından Mesaj İçeriği Niyeti'ni etkinleştirin.",
- "channel.quickSetup.discord.bot.title": "Bot jetonunu alın ve mesaj içeriğine izin verin",
"channel.quickSetup.discord.create.desc": "Geliştirici Portalında, Yeni Uygulama'ya tıklayın ve bir ad verin.",
"channel.quickSetup.discord.create.title": "Bir uygulama oluşturun",
"channel.quickSetup.discord.credentials.desc": "Her ikisi de Genel Bilgiler'de bulunur.",
diff --git a/locales/vi-VN/agent.json b/locales/vi-VN/agent.json
index a210eb45def..764b75a6b40 100644
--- a/locales/vi-VN/agent.json
+++ b/locales/vi-VN/agent.json
@@ -359,8 +359,6 @@
"channel.qq.webhookMigrationTitle": "Cân nhắc chuyển sang chế độ WebSocket",
"channel.quickSetup.connect.desc": "Lưu những gì bạn đã điền ở trên và đưa bot trực tuyến. Mọi thứ khác có thể thay đổi sau.",
"channel.quickSetup.connect.title": "Lưu và kết nối",
- "channel.quickSetup.discord.bot.desc": "Trên trang Bot, Đặt lại Token và sao chép nó, sau đó bật Message Content Intent.",
- "channel.quickSetup.discord.bot.title": "Lấy token bot và cho phép nội dung tin nhắn",
"channel.quickSetup.discord.create.desc": "Trong Developer Portal, nhấp vào New Application và đặt tên cho nó.",
"channel.quickSetup.discord.create.title": "Tạo một ứng dụng",
"channel.quickSetup.discord.credentials.desc": "Cả hai đều nằm trong General Information.",
diff --git a/locales/zh-CN/agent.json b/locales/zh-CN/agent.json
index 9c1e90ed9b8..52e440bf595 100644
--- a/locales/zh-CN/agent.json
+++ b/locales/zh-CN/agent.json
@@ -359,12 +359,14 @@
"channel.qq.webhookMigrationTitle": "建议迁移至 WebSocket 模式",
"channel.quickSetup.connect.desc": "保存上面填好的信息,机器人随即上线。其他设置之后随时可以改。",
"channel.quickSetup.connect.title": "保存并连接",
- "channel.quickSetup.discord.bot.desc": "在 Bot 页面点 Reset Token 并复制,然后打开 Message Content Intent。",
- "channel.quickSetup.discord.bot.title": "获取 Bot Token 并允许读取消息内容",
+ "channel.quickSetup.discord.bot.desc": "在 Bot 页面点 Reset Token 并复制。",
+ "channel.quickSetup.discord.bot.title": "获取 Bot Token",
"channel.quickSetup.discord.create.desc": "在开发者后台点 New Application 并命名。",
"channel.quickSetup.discord.create.title": "创建应用",
"channel.quickSetup.discord.credentials.desc": "都在 General Information 页面。",
"channel.quickSetup.discord.credentials.title": "复制 Application ID 和 Public Key",
+ "channel.quickSetup.discord.intent.desc": "在 Bot 页面的 Privileged Gateway Intents 中打开 Message Content Intent 并保存。不打开的话,机器人读不到消息。",
+ "channel.quickSetup.discord.intent.title": "打开 Message Content Intent",
"channel.quickSetup.discord.invite.desc": "邀请链接已包含机器人需要的权限。私有频道还需在该频道的设置 → 权限中添加机器人。",
"channel.quickSetup.discord.invite.title": "邀请机器人进服务器",
"channel.quickSetup.feishu.bot.desc": "在「应用能力」中添加「机器人」。",
diff --git a/locales/zh-TW/agent.json b/locales/zh-TW/agent.json
index 336201836f7..00824f48294 100644
--- a/locales/zh-TW/agent.json
+++ b/locales/zh-TW/agent.json
@@ -359,8 +359,6 @@
"channel.qq.webhookMigrationTitle": "建議遷移至 WebSocket 模式",
"channel.quickSetup.connect.desc": "儲存您在上方填寫的內容並使機器人上線。其他設定可以稍後更改。",
"channel.quickSetup.connect.title": "儲存並連接",
- "channel.quickSetup.discord.bot.desc": "在機器人頁面,重置令牌並複製它,然後開啟訊息內容意圖。",
- "channel.quickSetup.discord.bot.title": "獲取機器人令牌並允許訊息內容",
"channel.quickSetup.discord.create.desc": "在開發者入口網站中,點擊「新建應用程式」並命名。",
"channel.quickSetup.discord.create.title": "創建應用程式",
"channel.quickSetup.discord.credentials.desc": "兩者都在「一般資訊」中。",
diff --git a/packages/locales/src/default/agent.ts b/packages/locales/src/default/agent.ts
index eb685da9caa..d853fda929a 100644
--- a/packages/locales/src/default/agent.ts
+++ b/packages/locales/src/default/agent.ts
@@ -61,9 +61,11 @@ export default {
'In the Developer Portal, click New Application and name it.',
'channel.quickSetup.discord.credentials.title': 'Copy the Application ID and Public Key',
'channel.quickSetup.discord.credentials.desc': 'Both are on General Information.',
- 'channel.quickSetup.discord.bot.title': 'Get the bot token and allow message content',
- 'channel.quickSetup.discord.bot.desc':
- 'On the Bot page, Reset Token and copy it, then turn on Message Content Intent.',
+ 'channel.quickSetup.discord.bot.title': 'Get the bot token',
+ 'channel.quickSetup.discord.bot.desc': 'On the Bot page, click Reset Token and copy it.',
+ 'channel.quickSetup.discord.intent.title': 'Turn on Message Content Intent',
+ 'channel.quickSetup.discord.intent.desc':
+ "On the Bot page, under Privileged Gateway Intents, turn on Message Content Intent and save. Without it, the bot can't read messages.",
'channel.quickSetup.discord.invite.title': 'Invite the bot to your server',
'channel.quickSetup.discord.invite.desc':
"The invite link already carries the permissions the bot needs. For a private channel, also add the bot in that channel's Settings → Permissions.",
diff --git a/src/features/AgentChannel/quickSetup/guides.ts b/src/features/AgentChannel/quickSetup/guides.ts
index 603a8b33285..dfec3c6b072 100644
--- a/src/features/AgentChannel/quickSetup/guides.ts
+++ b/src/features/AgentChannel/quickSetup/guides.ts
@@ -113,19 +113,19 @@ export const getSetupGuide = (
};
}
case 'discord': {
+ const botSettingsLink = {
+ href: appId ? buildDiscordBotPageUrl(appId) : DISCORD_DEVELOPER_PORTAL_URL,
+ label: 'openBotSettings',
+ } as const;
return {
guide: 'discord',
steps: [
{ key: 'create', link: { href: DISCORD_DEVELOPER_PORTAL_URL, label: 'openConsole' } },
{ key: 'credentials', fields: ['applicationId', 'publicKey'] },
- {
- key: 'bot',
- fields: ['botToken'],
- link: {
- href: appId ? buildDiscordBotPageUrl(appId) : DISCORD_DEVELOPER_PORTAL_URL,
- label: 'openBotSettings',
- },
- },
+ { key: 'bot', fields: ['botToken'], link: botSettingsLink },
+ // Without Message Content Intent the bot connects but reads empty messages, so it
+ // gets its own step instead of trailing the token copy.
+ { key: 'intent', link: botSettingsLink },
{
beforeConnect: true,
key: 'invite',
diff --git a/src/features/AgentChannel/quickSetup/quickSetup.test.ts b/src/features/AgentChannel/quickSetup/quickSetup.test.ts
index 9f1973cdc79..6dc580843c4 100644
--- a/src/features/AgentChannel/quickSetup/quickSetup.test.ts
+++ b/src/features/AgentChannel/quickSetup/quickSetup.test.ts
@@ -144,6 +144,19 @@ describe('getSetupGuide', () => {
expect(after.steps.find((step) => step.key === 'bot')!.link?.href).toContain('/42/bot');
});
+ it('gives Message Content Intent its own Discord step, linked to the bot settings', () => {
+ const intent = (applicationId?: string) =>
+ getSetupGuide('discord', { applicationId, appName: 'Moss' })!.steps.find(
+ (step) => step.key === 'intent',
+ )!;
+
+ expect(intent()).toMatchObject({
+ link: { href: 'https://discord.com/developers/applications', label: 'openBotSettings' },
+ });
+ expect(intent().fields).toBeUndefined();
+ expect(intent('42').link?.href).toBe('https://discord.com/developers/applications/42/bot');
+ });
+
it('links Slack steps into the app once its ID is known', () => {
const guide = getSetupGuide('slack', { applicationId: 'A1', appName: 'Moss' })!;
@@ -184,7 +197,7 @@ describe('getSetupGuide', () => {
};
// Discord's invite needs only the app ID, and a bot in no server fails the connection test.
- expect(at('discord')).toEqual(['create', 'credentials', 'bot', 'invite', 'connect']);
+ expect(at('discord')).toEqual(['create', 'credentials', 'bot', 'intent', 'invite', 'connect']);
expect(at('telegram')).toEqual(['botfather', 'token', 'connect', 'privacy']);
expect(at('line')).toEqual(['account', 'messagingApi', 'credentials', 'connect', 'webhook']);
expect(connectStepIndex([{ key: 'only' }])).toBe(1);