AgentStack
SKILL verified MIT Self-run

Discord

skill-ashish7802-awesome-api-skills-discord · by ashish7802

A Claude skill from ashish7802/awesome-api-skills.

No reviews yet
0 installs
17 views
0.0% view→install

Install

$ agentstack add skill-ashish7802-awesome-api-skills-discord

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access Used
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

Are you the author of Discord? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

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 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](../express/SKILL.md) — integrates with
  • [fastapi](../fastapi/SKILL.md) — integrates with

> Last Verified: 2026-07-02

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.