discord-bot-architect

Implements Discord bots with Discord.js and Pycord using slash commands and interactive components.

Updated Aug 28, 2026
One-click install
npx skills add https://github.com/miyake-san/sogo-agent-platform --skill discord-bot-architect-miyake-san
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: discord-bot-architect
Source: https://github.com/miyake-san/sogo-agent-platform/tree/main/skills/core/discord-bot-architect
Command: npx skills add https://github.com/miyake-san/sogo-agent-platform --skill discord-bot-architect-miyake-san

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires discord.js, pycord, dotenv.

What problem does it solve? Building a Discord bot involves many pitfalls: privileged gateway intents, rate-limited command registration, event loop blocking, and token security. This Skill provides proven patterns and anti-patterns so you avoid common mistakes that cause disconnections, rate limits, or security issues. ## Core Features & Use Cases - Discord.js v14 Foundation: Set up a JavaScript bot with minimal gateway intents, dynamic command and event loading, and slash command handlers. - Pycord Foundation: Build a Python bot with async slash commands, command options, and cog-based extension loading. - Interactive Components: Add buttons, select menus, and modals with collectors for rich user interactions. - Use Case: You need a moderation bot for your community server. Use the Pycord foundation to scaffold the bot, add slash commands for moderation actions, and attach confirmation buttons so moderators verify actions before they execute. ## Quick Start Ask the agent to scaffold a Discord bot with slash commands using Discord.js or Pycord and include a ping command with latency reporting.

Frequently Asked Questions about discord-bot-architect

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a Discord bot with slash commands in JavaScript?

Use Discord.js v14 with SlashCommandBuilder to define commands, then load them dynamically from a commands directory into a Collection. Register commands with a separate deploy script rather than on startup to avoid rate limits.

How to build a Discord bot in Python with Pycord?

Create a commands.Bot with default intents, define slash commands using the @bot.slash_command decorator with typed options, and organize features into cogs loaded via bot.load_extension. Store the token in an environment variable.

Discord.js vs Pycord for building a Discord bot?

Discord.js suits JavaScript/TypeScript projects needing full gateway event control and complex interactions. Pycord fits Python developers who prefer async/await patterns and want straightforward slash command and cog support.

Why does my Discord bot keep disconnecting from the gateway?

Disconnections usually happen when blocking operations prevent the gateway heartbeat from being sent. Never run synchronous heavy work on the event loop; offload it to threads, processes, or background tasks.

Should I enable the Message Content intent for my Discord bot?

No, Message Content is a privileged intent and deprecated for bot commands. Use slash commands instead, which receive user input directly through interaction options without needing message content access.

Why are my Discord slash commands not updating after changes?

Global command registration is rate limited and can take up to one hour to propagate. During development, register guild-specific commands which update instantly, and only sync globally for production releases.