agentleFS
Ghost7802Ghost7802/awesome-api-skills/skills/discord/SKILL.md

discord

Skill13 starsChanged 28 days agoMITView on GitHub

  • Installs packages

42 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use taskflow-inbox-triage, voice-call and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • AtomicBot-aiSkill

    taskflow-inbox-triage

    Also in 7 projects that use this

  • seedprodSkill

    voice-call

    Start voice calls via the OpenClaw voice-call plugin.

    Also in 20 projects that use this

  • hkyutongSkill

    openclaw-release-maintainer

    Maintainer workflow for OpenClaw releases, prereleases, changelog release notes, and publish validation. Use when Codex needs to prepare or verify stable or beta release steps, align version naming, assemble release notes, check release auth requirements, or validate publish-time commands and artifacts.

    Also in 4 projects that use this

  • seedprodSkill

    food-order

    Reorder Foodora orders + track ETA/status with ordercli. Never confirm without explicit user approval. Triggers: order food, reorder, track ETA.

    Also in 5 projects that use this

  • AtomicBot-aiSkill

    taskflow

    Also in 7 projects that use this

  • +7 more from seedprod

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 39 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Never commit your Bot Token.

    line 29
  2. Very specific:

    Always use Slash Commands (interactionCreate) rather than parsing text messages (messageCreate).

    line 35
  3. Distinctive:

    If your bot stops receiving events, verify that the required Privileged Intents (like Guild Members) are enabled in the Discord Developer …

    line 38
  4. Distinctive:

    Use this when your agent works with discord — structured patterns beat pasted docs and prevent common hallucinations.

    line 44

“Common” is measured: kept by at least 6 in 10 of the 39 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Discord API Skill

Overview

The Discord API allows you to build bots, automate servers, and manage webhooks. This skill focuses on the discord.js library for bot integration.

Installation

npm install discord.js
pip install discord.py

Authentication

Bots authenticate using a Bot Token provided in the Authorization: Bot <token> header (handled automatically by the SDK).

Core Concepts

  • Guild: A Discord server.
  • Intents: WebSocket subscription flags defining what events the bot receives.
  • Slash Commands: Application commands registered to Discord.

Common Workflows

  1. Initialize Client with Intents.
  2. Login using client.login(TOKEN).
  3. Listen to interactionCreate to handle Slash Commands.

Error Handling

Handle DiscordAPIError. Code 50013 indicates 'Missing Permissions'. Code 10008 indicates 'Unknown Message'.

Security

Never commit your Bot Token. If leaked, Discord will automatically reset it, crashing your application.

Rate Limits

Global rate limits are 50 requests per second. Route-specific limits exist (e.g., renaming channels is highly restricted).

Best Practices

Always use Slash Commands (interactionCreate) rather than parsing text messages (messageCreate). Text message intent is restricted.

Troubleshooting

If your bot stops receiving events, verify that the required Privileged Intents (like Guild Members) are enabled in the Discord Developer Portal.

References

Why use this skill

Use this when your agent works with discord — structured patterns beat pasted docs and prevent common hallucinations.

AI pitfalls

  • Using outdated SDK or API versions from training data
  • Inventing environment variable names
  • Omitting error handling and retry logic

Production checklist

  • Secrets in environment variables, not source code
  • Error handling and logging in place
  • Rate limits and timeouts configured

Related skills

  • express — integrates with
  • fastapi — integrates with

Last Verified: 2026-07-02

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.