360 Secure SkillHub
360 安全技能中心

Discord

这是面向生产的Discord Bot API进阶开发技能,无需依赖SDK,通过直接HTTPS请求实现交互、命令、消息等机器人工作流。适合需命令优先的机器人行为、偏好无库依赖开发、需要结构化API映射的场景,不支持全SDK/网关客户端或大媒体直传。需输入bot令牌、应用ID等信息,输出机器人工作流计划、命令设计及操作清单,配套多份参考文档辅助开发。

codedao12
codedao12
热度 98.44
最近更新 2026-05-11 15:53:42
分类:开发依赖:纯提示词应用场景:API 集成 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add discord-hub
Metadata
name
discord-hub
description
OpenClaw skill for Discord Bot API workflows, covering interactions, commands, messages, and operations using direct HTTPS requests.

Discord Bot API Skill (Advanced)

Purpose

Provide a production-oriented guide for building Discord bot workflows via the REST API and Interactions, focusing on professional command UX, safe operations, and direct HTTPS usage (no SDKs).

Best fit

  • You want command-first bot behavior and clear interaction flows.
  • You prefer direct HTTP requests without a library dependency.
  • You need a structured map of Discord API surfaces.

Not a fit

  • You need a full SDK or gateway client implementation.
  • You plan to stream large media uploads directly.

Quick orientation

  • Read references/discord-api-overview.md for base URL, versioning, and object map.
  • Read references/discord-auth-and-tokens.md for token types and security boundaries.
  • Read references/discord-interactions.md for interaction lifecycle and response patterns.
  • Read references/discord-app-commands.md for slash, user, and message commands.
  • Read references/discord-messages-components.md for messages, embeds, and components.
  • Read references/discord-gateway-webhooks.md for gateway vs webhook tradeoffs.
  • Read references/discord-rate-limits.md for throttling and header-based handling.
  • Read references/discord-request-templates.md for HTTP payload templates.
  • Read references/discord-feature-map.md for the full surface checklist.

Required inputs

  • Bot token and application ID.
  • Interaction endpoint public key (if using interaction webhooks).
  • Command list and UX tone.
  • Allowed intents and event scope.

Expected output

  • A clear bot workflow plan, command design, and operational checklist.

Operational notes

  • Prefer interactions and slash commands over prefix parsing.
  • Always validate incoming interaction signatures.
  • Keep payloads small and respond quickly to interactions.

Security notes

  • Never log tokens or secrets.
  • Use least-privilege permissions and scopes.