discord

Implement Discord bots with API references for discord.py and discord.js.

Updated Apr 3, 2026
One-click install
npx skills add https://github.com/kettleofketchup/KettleOfSkills --skill discord-kettleofketchup
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: discord
Source: https://github.com/kettleofketchup/KettleOfSkills/tree/main/plugins/discord/skills/discord
Command: npx skills add https://github.com/kettleofketchup/KettleOfSkills --skill discord-kettleofketchup

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Building Discord bots often requires referencing scattered official API documentation and framework-specific guides, leading to inconsistent implementations, missed API constraints, and bugs from incorrect usage of interaction responses, component limits, or permission settings. This skill consolidates all necessary reference material and code patterns into a single, easy-to-access resource for Discord bot developers.

Core Features & Use Cases

  • Comprehensive API Reference: Includes detailed specifications for all core Discord API features including slash commands, interactive components (buttons, select menus, modals), webhooks, embeds, and interaction handling, with exact field limits, constraints, and endpoint documentation.
  • Framework-Specific Implementation Guides: Provides ready-to-use code patterns and best practices for the two most popular Discord bot libraries, discord.py (Python) and discord.js (TypeScript/JavaScript), covering command registration, component callbacks, webhook management, and error handling.
  • Real-World Use Case: For example, if you are building a community moderation bot that uses slash commands for user management, confirmation buttons for sensitive actions, and webhooks for audit logging, this skill gives you the exact implementation details to avoid common pitfalls like interaction timeout errors or exceeding component limits.

Quick Start

Use the discord skill to implement a slash command that sends an ephemeral embed with a confirmation button when a user runs /report.

Frequently Asked Questions about discord

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

FAQPage Schema
How do I implement Discord slash commands and handle interaction responses correctly?

Discord slash commands require registering commands via the API and responding within strict interaction timing rules. This resource provides exact code patterns for discord.js and discord.py to handle interaction responses, callbacks, and component constraints without timeout errors.

What are the field limits and constraints for Discord interactive components like buttons and modals?

Discord interactive components enforce exact field limits for buttons, select menus, and modals. This reference consolidates component constraints and API specifications, ensuring your bot builds compliant interactive components and modal forms without exceeding Discord API limits.

Can I use this Discord bot development reference for both discord.py and discord.js?

Yes, this reference supports both discord.py (Python) and discord.js (TypeScript/JavaScript). It provides framework-specific implementation guides, best practices, and ready-to-use code patterns for command registration, component callbacks, and webhook management across both libraries.

How do I manage Discord webhooks for audit logging and rich embed construction?

Discord webhooks can be managed using specific API endpoints for message management and rich embed construction. This guide details webhook message handling, embed field limits, and framework-specific code patterns to build production-ready audit logging bots.

Why does my Discord bot get interaction timeout errors when using confirmation buttons?

Discord interaction timeout errors occur when responses to slash commands or button interactions exceed Discord API rate limits and timing rules. This reference outlines exact response timing requirements and component constraints to prevent these common pitfalls.