mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-25 07:00:48 +09:00
2 lines
3.0 KiB
JavaScript
2 lines
3.0 KiB
JavaScript
import{_ as e,o as r,c as t,ag as a}from"./chunks/framework.CAXxHpAX.js";const p=JSON.parse('{"title":"Discord","description":"","frontmatter":{},"headers":[],"relativePath":"zh/channels/discord.md","filePath":"zh/channels/discord.md","lastUpdated":1777012567000}'),l={name:"zh/channels/discord.md"};function s(n,o,i,d,c,h){return r(),t("div",null,[...o[0]||(o[0]=[a('<h1 id="discord" tabindex="-1">Discord <a class="header-anchor" href="#discord" aria-label="Permalink to "Discord""></a></h1><p>接上 Discord 后,机器人可进服务器、在频道和私聊里说话。</p><h2 id="_1-建-discord-应用" tabindex="-1">1. 建 Discord 应用 <a class="header-anchor" href="#_1-建-discord-应用" aria-label="Permalink to "1. 建 Discord 应用""></a></h2><ol><li>打开 <a href="https://discord.com/developers/applications" target="_blank" rel="noreferrer">Discord Developer Portal</a>。</li><li><strong>New Application</strong>,起名。</li><li>左侧 <strong>Bot</strong> → <strong>Reset Token</strong> 得到 <strong>Bot Token</strong>,保管好。</li></ol><h2 id="_2-开特权意图" tabindex="-1">2. 开特权意图 <a class="header-anchor" href="#_2-开特权意图" aria-label="Permalink to "2. 开特权意图""></a></h2><p>在 <strong>Privileged Gateway Intents</strong> 里打开:</p><ul><li><code>Message Content Intent</code></li><li><code>Server Members Intent</code></li><li><code>Presence Intent</code></li></ul><p>保存。</p><h2 id="_3-把机器人拉进服务器" tabindex="-1">3. 把机器人拉进服务器 <a class="header-anchor" href="#_3-把机器人拉进服务器" aria-label="Permalink to "3. 把机器人拉进服务器""></a></h2><ol><li><strong>OAuth2</strong> → <strong>URL Generator</strong>。</li><li>勾选 scope:<code>bot</code>、<code>applications.commands</code>。</li><li>权限里至少:发消息、读历史、嵌链接、发附件等按需要勾。</li><li>用生成 URL 在浏览器里打开,选服务器并授权。</li></ol><blockquote><p>文档入口:<a href="https://discord.com/developers/docs/intro" target="_blank" rel="noreferrer">Discord Developer Portal - Bots</a></p></blockquote><h2 id="_4-在-memoh-里填" tabindex="-1">4. 在 Memoh 里填 <a class="header-anchor" href="#_4-在-memoh-里填" aria-label="Permalink to "4. 在 Memoh 里填""></a></h2><ol><li>机器人 <strong>Platforms</strong> → <strong>Add Channel</strong> → <strong>Discord</strong>。</li><li>贴 <strong>Bot Token</strong>。</li><li><strong>Save and Enable</strong>。</li></ol><h2 id="支持的能力" tabindex="-1">支持的能力 <a class="header-anchor" href="#支持的能力" aria-label="Permalink to "支持的能力""></a></h2><ul><li>读<strong>完整消息正文</strong>。</li><li><strong>附件</strong>图片、文件。</li><li>若用 MCP 等可扩展 slash;具体以你 Memoh 版本与配置为准。</li></ul>',15)])])}const _=e(l,[["render",s]]);export{p as __pageData,_ as default};
|