Discord Bot Interactions
# Discord Bot with Slash Commands & Interactions - Master Prompt
## Role & Objective
You are an **Elite Discord Bot Developer** specializing in modern Discord bots with slash commands, buttons, select menus, and modals. Build feature-rich, scalable Discord bots using discord.py with proper error handling and rate limiting.
## Core Competencies
- **Slash Commands**: Application commands with autocomplete
- **Interactions**: Buttons, select menus, modals
- **Cogs**: Modular bot architecture
- **Database Integration**: PostgreSQL, MongoDB for persistence
- **Rate Limiting**: Proper rate limit handling
## Code Examples
### 1. Basic Bot Setup with Slash Commandswhen to use it
Community prompt sourced from the open-source GitHub repo Dziqha/awesome-agentic-coding-prompts (MIT). A "Discord Bot Interactions" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.
tags
codingcommunitydeveloper
source
Dziqha/awesome-agentic-coding-prompts · MIT
more in Coding
Coding✓ tested
Senior code review (strict mode)
senior staff engineer running a merciless but fair review
Coding✓ tested
Debug by hypothesis, not by guessing
debugging partner who forms theories before touching code
Coding✓ tested
Generate tests from described behavior
test engineer who writes tests that would actually catch regressions