Package Information
Available Nodes
Documentation generatingβ¦
Documentation
n8n-nodes-discord-all
Complete Discord Bot integration for n8n with all features - DM, Mentions, Server Management, Roles, Advanced Tools and more!
π Features
4 Powerful Nodes
Discord - Basic Discord operations (Regular n8n workflows)
- Send, edit, delete messages
- Manage channels, roles, members
- Server administration
- Webhooks and invites
Discord Tools - AI Agent Tool π€ (For AI agents)
All-in-one tool for AI agent workflows
Messages: Send, edit, delete, fetch, search messages
DM: Send direct messages to users
User Info: Get detailed user information and avatars
Channel Management: Statistics, active users, pins, slowmode
Server Analytics: Message heatmaps, top contributors
Moderation: Spam detection, duplicate finder
Backup: Export messages with full metadata
Emoji Management: Create, delete, list custom emojis
Audit Logs: Server audit log access
Discord Trigger - Real-time event listening
- Message events (create, update, delete)
- DM received trigger
- Bot mentioned trigger
- User mentioned trigger
- Role mentioned trigger
- Reactions, members, roles, channels
- Voice state, typing events
π¦ Installation
npm install n8n-nodes-discord-all
n8n Setup
Add to your n8n environment:
# Community nodes installation
n8n start
# Then in n8n UI:
# Settings β Community Nodes β Install
# Enter: n8n-nodes-discord-all
Or via environment variable:
export N8N_CUSTOM_EXTENSIONS="/path/to/node_modules/n8n-nodes-discord-all"
π― Quick Start
1. Setup Discord Bot
- Go to Discord Developer Portal
- Create a new application
- Go to "Bot" section
- Click "Add Bot"
- Copy the bot token
- Enable these Privileged Gateway Intents:
- Message Content Intent β
- Server Members Intent β
- Presence Intent (optional)
2. Configure n8n Credentials
- In n8n, go to Credentials
- Create new "Discord API" credential
- Paste your bot token
- Save
3. Create Your First Workflow
Example: DM Auto-Responder
Discord Trigger (DM Received)
β
Discord (Send DM)
User ID: {{$json["userId"]}}
Content: "Thanks for your message! We'll get back to you soon."
Example: Bot Mention Handler
Discord Trigger (Bot Mentioned)
β
Code Node (Parse command)
β
Discord (Send Message)
Channel ID: {{$json["channelId"]}}
Content: "Hello! How can I help you?"
π Documentation
- Complete Usage Guide
- 22 Practical Examples
- DM & Mentions Guide - 12 examples
- Discord Tools Guide - Advanced utilities
- Discord Advanced Guide - Analytics, moderation, backups π₯
π¨ Use Cases
- Customer Support Bot - Auto-respond to DMs and mentions
- Server Moderation - Auto-delete spam, manage slowmode
- Community Engagement - Welcome messages, role assignment
- Analytics & Reporting - Track server growth, user activity
- Content Monitoring - Search messages, audit logs
- Multi-language Support - Auto-detect and respond in user's language
π§ Available Operations
Discord Tools (AI Agent Tool π€)
- Messages: Send, edit, delete, fetch, search, get mentions, bulk delete
- DM: Send direct messages to users
- Users: Get detailed info, avatars, status, permissions
- Channels: Get stats, active users, pins, webhooks, set slowmode
- Server: Get statistics, online members, audit log, emojis
- Emojis: Create, delete, list custom emojis
- Analytics: Message heatmaps, top contributors
- Moderation: Spam detection, duplicate message finder
- Backup: Export messages with full metadata
Discord Trigger
- Message Created / Deleted / Updated
- DM Received
- Bot Mentioned
- User Mentioned
- Role Mentioned
- Reaction Added / Removed
- Member Joined / Left / Updated
- Role/Channel Created / Deleted / Updated
- Guild Ban Add / Remove
- Voice State Update
- Typing Start
π Required Permissions
Bot Permissions
- Read Messages / View Channels
- Send Messages
- Manage Messages (for deletion)
- Manage Channels (for channel management)
- Manage Roles (for role management)
- Kick/Ban Members (for moderation)
- Read Message History
Gateway Intents (Developer Portal)
- β Message Content Intent (required)
- β Server Members Intent (required)
- Presence Intent (optional, for status)
π Example Workflows
Auto-Moderation System
Discord Trigger (Message Created)
β
Code Node (Check for spam)
β
IF Node (Is spam?)
β true
Discord Tools (Bulk Delete)
β
Discord (Send Warning)
User Activity Dashboard
Schedule Trigger (Daily)
β
Discord Tools (Get Active Users)
β
Code Node (Generate report)
β
Discord (Send Embed Report)
Ticket System
Discord Trigger (Reaction Added) β "π«"
β
Discord (Create Channel) - Private ticket channel
β
Discord (Send Message) - "How can we help?"
π€ Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
π License
MIT Β© [Your Name]
π Issues
Found a bug? Have a feature request? Please open an issue.
β Support
If you find this package helpful, please give it a star on GitHub!
π Links
π Version History
v2.3.0 (2024-11-21) π
- BREAKING: Simplified to 2 nodes (DiscordTools + DiscordTrigger)
- DiscordTools: Unified AI Agent Tool with all Discord operations
- Removed Discord and DiscordAdvanced nodes (all features now in DiscordTools)
- Complete consolidation for better AI agent integration
v2.2.0 (2024-11-21)
- Added all Discord operations to DiscordTools
- Message send, edit, delete operations
- DM sending capabilities
- Analytics, moderation, and backup features
v2.1.0 (2024-11-21)
- Discord Advanced Node with 15+ operations
- Analytics, moderation, backup features
- DiscordTools enabled as AI Agent Tool
v1.0.0 (2024)
- Initial release
- Complete Discord bot functionality
- DM and mention triggers
Made with β€οΈ for the n8n community