npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@silvertakana/n8n-nodes-discord-user

v1.0.1

Published

n8n community node for Discord user automation - Full Discord API functionality

Readme

n8n-nodes-discord-user

n8n.io - Workflow Automation

Discord Self-Bot node for n8n - Automate Discord interactions using your user account.

⚠️ WARNING: Using self-bots violates Discord's Terms of Service. Use at your own risk. Your account may be banned.

Installation

In n8n (Recommended)

  1. Go to Settings > Community Nodes
  2. Select Install
  3. Enter n8n-nodes-discord-user in the npm Package Name field
  4. Agree to the risks of using community nodes
  5. Click Install

Manual Installation

cd ~/.n8n/custom
npm install n8n-nodes-discord-user
# Restart n8n

Getting Started

1. Get Your Discord Token

  1. Open Discord in your web browser
  2. Press F12 to open Developer Tools
  3. Go to the Network tab
  4. Send any message in Discord
  5. Look for requests to discord.com/api
  6. Find the authorization header in request headers
  7. Copy the token value

⚠️ NEVER share your token with anyone!

2. Configure Credentials in n8n

  1. Go to Credentials > New
  2. Search for Discord Self-Bot API
  3. Paste your Discord user token
  4. Click Save

3. Use the Node

Add the Discord Self-Bot node to your workflow and select an operation:

  • Send Message - Send messages to channels
  • Read Messages - Retrieve messages from channels
  • React to Message - Add emoji reactions
  • Edit Message - Edit your own messages
  • Delete Message - Delete your own messages
  • Get User Info - Retrieve user information

Features

  • 📤 Send Messages: Post messages to any channel you have access to
  • 📥 Read Messages: Fetch recent messages from channels
  • 👍 React: Add emoji reactions to messages
  • ✏️ Edit: Modify your own messages
  • 🗑️ Delete: Remove your own messages
  • 👤 User Info: Get detailed information about Discord users

Documentation

Getting Discord IDs

Enable Developer Mode in Discord (User Settings > Advanced > Developer Mode), then:

  • Channel ID: Right-click channel → Copy ID
  • Message ID: Right-click message → Copy ID
  • User ID: Right-click user → Copy ID

Example Workflows

Simple Message Sender

{
  "operation": "sendMessage",
  "channelId": "123456789012345678",
  "content": "Hello from n8n!"
}

Auto-Reply Bot

Monitor a channel and automatically reply to messages containing specific keywords.

Message Logger

Log all messages from specific channels to a database or spreadsheet.

Security & Privacy

  • Discord tokens are stored securely using n8n's credential system
  • Never commit tokens to version control
  • Tokens are encrypted at rest
  • Use separate Discord accounts for automation

Legal Disclaimer

IMPORTANT: Self-bots violate Discord's Terms of Service (§6.3). By using this node:

  • Your Discord account may be terminated without warning
  • The developers assume no responsibility for consequences
  • You acknowledge using this tool at your own risk

This tool is provided for educational purposes only.

Troubleshooting

Error: Invalid Token

  • Verify token was copied correctly
  • Get a fresh token
  • Check if account is locked

Error: Missing Permissions

  • You can only interact with channels you have access to
  • You can only edit/delete your own messages

Rate Limiting

  • Discord enforces rate limits on API requests
  • The node handles rate limits automatically
  • Avoid excessive requests in quick succession

Development

# Install dependencies
npm install

# Build the project
npm run build

# Run tests
npm test

# Lint code
npm run lint

# Format code
npm run format

Project Structure

n8n-nodes-discord-self/
├── src/
│   ├── credentials/
│   │   └── DiscordSelfApi.credentials.ts
│   ├── nodes/
│   │   └── DiscordSelf/
│   │       ├── DiscordSelf.node.ts
│   │       └── discord.svg
│   └── index.ts
├── tests/
│   └── DiscordSelf.test.ts
├── docs/
│   ├── README.md
│   └── KOREAN.md
├── examples/
│   └── workflow-example.json
└── package.json

Contributing

Contributions are welcome! Please:

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests if applicable
  5. Submit a pull request

Support

License

MIT License

Resources

Changelog

1.0.0 (Initial Release)

  • ✨ Send messages to channels
  • ✨ Read messages from channels
  • ✨ React to messages with emojis
  • ✨ Edit and delete messages
  • ✨ Get user information
  • ✨ Comprehensive error handling
  • ✨ TypeScript support
  • ✨ Full test coverage

Made with ❤️ for the n8n community