← 返回
未分类 中文

Discord

Manage Discord guilds, channels, messages, members, roles, and application commands - powered by ClawLink.
使用 ClawLink 管理 Discord 服务器、频道、消息、成员、角色及应用指令
hith3sh hith3sh 来源
未分类 clawhub v1.0.6 2 版本 99627.8 Key: 无需
★ 6
Stars
📥 1,486
下载
💾 1
安装
2
版本
#clawlink#integration#latest

概述

Discord

!Discord

Work with Discord from chat — manage guilds, channels, messages, members, roles, and application commands.

Powered by ClawLink, an integration hub for OpenClaw that handles hosted connection flows and credentials so you don't need to configure Discord API access yourself.

Setup in 3 Steps

Step 1: InstallStep 2: Pair AccountStep 3: Connect Discord
:---::---::---:
!Install!PairApp-specific connection GIF coming soon
Run the install command in OpenClawSign in and approve the deviceOpen the dashboard and connect Discord

Connection flow

User → ClawLink OAuth → Discord account
         ↓
    OpenClaw tools
    (via ClawLink)

Step 1 — Install the ClawLink plugin:

openclaw plugins install clawhub:clawlink-plugin

Start a fresh chat after installing.

Step 2 — Pair ClawLink:

  1. Call clawlink_begin_pairing
  2. Open the returned URL in your browser
  3. Sign in to ClawLink and approve the device

Step 3 — Connect Discord:

Open claw-link.dev/dashboard?add=discord, complete the OAuth flow, then confirm.

App-specific connection GIF coming soon

Step 4 — Verify and discover:

// 1. Verify Discord is connected
clawlink_list_integrations()

// 2. List available tools
clawlink_list_tools({ integration: "discord" })

// 3. Search tools if needed
clawlink_search_tools({ query: "guild", integration: "discord" })

Architecture

┌─────────────────────────────────────────────────────────┐
│                    OpenClaw (you)                       │
├─────────────────────────────────────────────────────────┤
│  ClawLink Plugin  →  clawlink_* tools                   │
├─────────────────────────────────────────────────────────┤
│                    ClawLink Cloud                       │
│         (credentials, connection state, routing)        │
├─────────────────────────────────────────────────────────┤
│              Discord API (user's account)              │
└─────────────────────────────────────────────────────────┘

Tool reference

User & identity

ToolDescriptionRisk
-------------------------
discord_get_my_userGet current user's profile (email if email scope granted)safe
discord_get_userGet any Discord user by ID (use '@me' for authenticated user)safe
discord_get_openid_connect_userinfoGet OIDC-compliant user claims (sub, email, picture, locale)safe
discord_get_my_oauth2_authorizationGet OAuth2 authorization details, scopes, token expirationsafe
discord_list_my_connectionsList user's connected third-party accounts on Discordsafe
discord_list_my_guildsList current user's guilds (partial data for display)safe
discord_get_my_guild_memberGet guild member info for current user (roles, nickname, join date)safe

Guilds & widgets

ToolDescriptionRisk
-------------------------
discord_get_guild_templateGet Discord guild template details by template codesafe
discord_get_guild_widgetGet guild widget JSON (guild widget must be enabled)safe
discord_get_guild_widget_pngGet PNG image widget for a guildsafe
discord_leave_guildLeave a guild on behalf of the authenticated userhigh_impact

Application commands & permissions

ToolDescriptionRisk
-------------------------
discord_get_application_command_permissionsGet permissions for a specific command in a guildsafe
discord_get_batch_application_command_permissionsGet permissions for all commands in a guildsafe
discord_edit_application_command_permissionsEdit permissions for a specific command (requires MANAGE_GUILD)confirm

Entitlements & commerce

ToolDescriptionRisk
-------------------------
discord_get_current_user_application_entitlementsGet user's premium entitlements for an applicationsafe
discord_get_sku_subscriptionGet a specific subscription by ID for a SKUsafe
discord_list_sku_subscriptionsList all subscriptions for a SKUsafe
discord_consume_entitlementMark a consumable entitlement as consumedconfirm
discord_delete_test_entitlementDelete a test entitlement (cleanup)high_impact

Role connections

ToolDescriptionRisk
-------------------------
discord_get_user_application_role_connectionGet user's role connection metadata for an appsafe
discord_update_user_application_role_connectionUpdate user's role connection (requires role_connections.write scope)confirm
discord_delete_user_application_role_connectionDelete user's role connection metadatahigh_impact

Gateway & utilities

ToolDescriptionRisk
-------------------------
discord_get_gatewayGet valid WebSocket URL for Gateway connectionsafe
discord_get_public_keysGet OAuth2 public keys for token verificationsafe
discord_invite_resolveResolve and get details about an invite codesafe
discord_list_sticker_packsList all available Discord Nitro sticker packssafe

User modification

ToolDescriptionRisk
-------------------------
discord_modify_current_userModify current user's username (max 2 changes/hour) and avatarconfirm

Code examples

Example 1: Get user info and guilds

// Get current user's profile
const me = await clawlink_call_tool({
  tool: "discord_get_my_user",
  parameters: {}
});

// List the user's guilds
const guilds = await clawlink_call_tool({
  tool: "discord_list_my_guilds",
  parameters: {}
});

// Get guild member info for yourself
const member = await clawlink_call_tool({
  tool: "discord_get_my_guild_member",
  parameters: { guild_id: "123456789" }
});

Example 2: Check application entitlements

// Get user's entitlements for an application
const entitlements = await clawlink_call_tool({
  tool: "discord_get_current_user_application_entitlements",
  parameters: { application_id: "987654321" }
});

// List subscriptions for a SKU
const subs = await clawlink_call_tool({
  tool: "discord_list_sku_subscriptions",
  parameters: { sku_id: "123456789" }
});

Example 3: Manage role connections

// Get current user's role connection
const roleConn = await clawlink_call_tool({
  tool: "discord_get_user_application_role_connection",
  parameters: { application_id: "987654321" }
});

// Update role connection metadata
await clawlink_call_tool({
  tool: "discord_update_user_application_role_connection",
  parameters: {
    application_id: "987654321",
    metadata: {
      custom_fields: [
        { name: "Xbox Gamertag", value: "PlayerOne" }
      ]
    }
  }
});

Example 4: Resolve invites and check widget

// Resolve an invite code
const invite = await clawlink_call_tool({
  tool: "discord_invite_resolve",
  parameters: { invite_code: "abc123xyz" }
});

// Get guild widget PNG for embedding
const widget = await clawlink_call_tool({
  tool: "discord_get_guild_widget_png",
  parameters: { guild_id: "123456789" }
});

Error handling

Error patternLikely causeResolution
-----------------------------------------
401 UnauthorizedBot token used where Bearer requiredUse OAuth2 Bearer token authentication
Missing MANAGE_GUILD permissionNot authorized to edit command permissionsUser needs to grant proper Discord permissions
Guild widget disabledWidget not enabled in server settingsServer admin must enable widget in Discord settings
Username change limit reachedAlready changed username 2+ times this hourWait before retrying
Role connection write scope missingOAuth2 lacks role_connections.write scopeUser may need to reconnect Discord with full scopes

Security & Permissions

  • ClawLink stores only the OAuth token, never the raw bot token
  • Device credentials are stored locally in OpenClaw plugin config
  • Bot tokens vs OAuth2 Bearer tokens have different capabilities — some tools error with bot tokens
  • discord_get_public_keys is for verifying external JWTs, not for storing keys

Troubleshooting

Tools not showing up after install:

  • Start a fresh OpenClaw chat to reload the plugin catalog
  • Call clawlink_list_integrations to confirm ClawLink is paired

"Permission denied" when editing command permissions:

  • Requires OAuth2 Bearer token (bot tokens will error)
  • User must have both MANAGE_GUILD and MANAGE_ROLES permissions in the target guild

Cannot get guild widget:

  • Widget must be enabled in Discord server settings
  • Server admin must toggle "Enable Server Widget" in Server Settings > Widget

Powered by ClawLink — your OpenClaw integration hub for Discord.

版本历史

共 2 个版本

  • v1.0.6 当前
    2026-06-09 16:13 安全 安全
  • v0.1.0
    2026-05-21 13:53 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

GitHub

hith3sh
通过 GitHub REST 和GraphQL API 与仓库、议题、拉取请求、提交、分支、发布和工作流进行交互。在需要时使用此技能。
★ 6 📥 1,781

Microsoft Excel

hith3sh
通过托管 OAuth 集成 Microsoft Excel API,实现对 OneDrive 中 Excel 工作簿、工作表、区域、表格和图表的读写。使用此技能...
★ 6 📥 1,775

Notion Assistant

hith3sh
搜索页面和数据库、更新内容、管理 Notion 工作区数据,支持从聊天中读取、创建或修改 Notion 页面...
★ 8 📥 1,773