Master Discord bot creation with 1 specialized skill.
Learn Discord.js and Pycord to build production-ready bots with slash commands and sharding.
Discord.js
Pycord
Slash Commands
Sharding
Gateway Intents
About This Skill
This specialized skill provides the foundational patterns for building robust Discord bots. It covers essential frameworks like Discord.js v14 and Pycord, focusing on the 1 core principle of interaction acknowledgment within 3 seconds.
Quick Start
1Install Discord.js or Pycord via npm/pip
2Configure minimal GatewayIntents to reduce privilege
3Implement slash command listeners
4Deploy global commands for production
Example Command
node src/index.js
Core Capabilities
Principles
Implement slash commands over deprecated message parsing and ensure 3-second interaction acknowledgments.
Patterns
Utilize modern Discord.js v14 foundations and robust command loading structures.
Rate Limiting
Handle API limits gracefully using exponential backoff strategies.
Sharding
Plan for large-scale deployment across 2500+ guilds using advanced sharding techniques.
Usage Examples
Before
User types !ping to get a response.
After
User selects /ping from the slash command menu for instant interaction.
Input
Discord.js v14 Client Setup
Output
A client with minimal required GatewayIntents
Input
High-frequency API calls
Output
Requests managed with exponential backoff
SKILL.md
---
name: discord-bot-architect
description: Specialized skill for building production-ready Discord bots.
Covers Discord.js (JavaScript) and Pycord (Python), gateway intents, slash
commands, interactive components, rate limiting, and sharding.
risk: unknown
source: vibeship-spawner-skills (Apache 2.0)
date_added: 2026-02-27
---
# Discord Bot Architect
Specialized skill for building production-ready Discord bots.
Covers Discord.js (JavaScript) and Pycord (Python), gateway intents,
slash commands, interactive components, rate limiting, and sharding.
## Principles
- Slash commands over message parsing (Message Content Intent deprecated)
- Acknowledge interactions within 3 seconds, always
- Request only required intents (minimize privileged intents)
- Handle rate limits gracefully with exponential backoff
- Plan for sharding from the start (required at 2500+ guilds)
- Use components (buttons, selects, modals) for rich UX
- Test with guild commands first, deploy global when ready
## Patterns
### Discord.js v14 Foundation
Modern Discord bot setup with Discord.js v14 and slash commands
**When to use**: Building Discord bots with JavaScript/TypeScript,Need full gateway connection with events,Building bots with complex interactions
```javascript
// src/index.js
const { Client, Collection, GatewayIntentBits, Events } = require('discord.js');
const fs = require('node:fs');
const path = require('node:path');
require('dotenv').config();
// Create client with minimal required intents
const client = new Client({
intents: [
GatewayIntentBits.Guilds,
// Add only what you need:
// GatewayIntentBits.GuildMessages,
// GatewayIntentBits.MessageContent, // PRIVILEGED - avoid if possible
]
});
// Load commands
client.commands = new Collection();
const commandsPath = path.join(__dirname, 'commands');
const commandFiles = fs.readdirSync(commandsPath).filter(f => f.endsWith('.js'));
for (const file of commandFiles) {
const filePath = path.join(commands
Frequently Asked Questions
FAQ
What frameworks are compatible?
The skill is fully compatible with Discord.js (JavaScript/TypeScript) and Pycord (Python).
Who is the target audience?
It is designed for developers looking to build production-ready, scalable Discord bots.
How does this differ from standard bot tutorials?
Unlike basic tutorials, this focuses on architectural principles like sharding, rate limiting, and minimal intent usage.
Is there language support for non-JS/Python users?
The core patterns are optimized for JavaScript and Python, the industry standards for Discord bot development.
What are the expected results after using this skill?
You will be able to deploy bots that handle thousands of guilds efficiently using sharding and modern interaction components.