Install
$ agentstack add skill-ashish7802-awesome-api-skills-discord ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo 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.
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
- Initialize
Clientwith Intents. - Login using
client.login(TOKEN). - Listen to
interactionCreateto 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.
- Author: ashish7802
- Source: ashish7802/awesome-api-skills
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.