mooncord
v10.0.2
Published
Mooncord is a powerful discord library made with NodeJS.
Maintainers
Readme
Mooncord
Mooncord is a powerful and scalable Discord API wrapper built with Node.js. Designed for developers who need full control and advanced functionality without relying on existing libraries like discord.js.
Features
- Full support for all major Discord API events and endpoints
- Custom WebSocket handling without third-party Discord wrappers
- Strict rate limit handling with queuing and retries
- Slash commands, buttons, modals, select menus, and more
- Advanced message, channel, role, user, thread, forum, and server managers
- Built-in getters for fetching any Discord resource
- Presence and activity management with real-time cache
- Lightweight yet modular, ideal for custom bot architectures
- Clean structure, no unnecessary dependencies
- Supports raw interactions and direct payload construction
Structure
Mooncord is divided into clear modules for maintainability and flexibility. Every feature is accessible through well-organized managers and utilities:
Client– Handles connection, session, and core gateway logicManager/*– Create, edit, delete, and manage Discord resourcesGetter/*– Fetch up-to-date data from the APIInteraction/*– Build and handle buttons, modals, select menus, and slash commandsPresenceManager– Track and manage user presences in real timeWebhook– Manage and send messages via webhooksRatelimit/*– Global and scoped rate limit handlerEmbedBuilder– Easily construct rich embed messagesIntents– Clean intent bitfield structure for gateway setup
Philosophy
Mooncord avoids abstraction bloat. It gives full control over raw Discord events and API structures while still offering clean, reusable building blocks.
You are in charge of behavior — Mooncord stays out of your way but gives you tools to build anything.
Use Case
Ideal for:
- Developers building custom bots without heavy wrappers
- Bots that need low-level API access
- Custom Discord integrations for high-performance projects
- Those who want full control over events, payloads, and logic
Update
- Added Helpers for extra things.
- Added normalizeColor, when you use setColor and tye a color in lowercase, then it auto becomes hex code.
- Added formatEmoji, for formatting emojis for button/select menu or any.
- Added TextInputStyle, for using short and paragraph.
- Added version function, for checking Mooncord version.
- Added PresenceActivityType, similar to ActivityType in discord.js.
- Added ButtonStyle, for button styles.
Requirements
- Node.js 18 or higher
- A Discord bot token
- Basic understanding of the Discord API
Work in Progress
Mooncord is actively being expanded. Future goals include:
- Voice support
- OAuth2 and user-bot utilities
- Full audit log and permission manager
- Gateway sharding
Support
- Discord Server: There is no support yet, but you can get help from me.
- My Discord: username berklast, nickname berklast.
