mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
* Improve logging, keep shard collections separated * revert to erroring in getSessionInfo. Fill the value in createBot * removed useless if * remove same number of shards check Co-authored-by: Awesome Stickz <awesome@stickz.dev> * Update manager.ts * revert shard.events.message assignment for the spread * use new Collection instead of .clear() + for-of * Use fixed formula and note in the comment the inaccuracy * Apply suggestions from code review Co-authored-by: Awesome Stickz <awesome@stickz.dev> * Add a remark to shardsFullPercentage to let the user know of the inaccuracy * Update comment and add a clearInterval The clearInterval is not strictly needed, however it is better to ensure there is always one and only one internal running at a given point * revert check for all shards online It was bugged as gateway.resharding.shards gets populated overtime and not instantly --------- Co-authored-by: Awesome Stickz <awesome@stickz.dev>
Discordeno
Discord API library for Node.JS, Deno & Bun
Discordeno is actively maintained to guarantee excellent performance, latest features, and ease of use.
- Simple, Efficient, and Lightweight: Discordeno is lightweight, simple to use, and adaptable.
- By default: No caching.
- Functional API:
- The functional API eliminates the challenges of extending built-in classes and inheritance while ensuring overall simple but performant code.
- Cross Runtime: Supports the Node.js, Deno, and Bun runtimes.
- Standalone components: Discordeno offers the option to have practically any component of a bot as a separate piece, including standalone REST, gateways, custom caches, and more.
- Flexibility/Scalability: Remove any properties, if your bot doesn't need them. For instance, remove
Channel.topicif your bot doesn't require it. You may save GBs of RAM in this way. A few lines of code are all that are needed to accomplish this for any property on any object.
Custom Cache
Have your cache setup in any way you like. Redis, PGSQL or any cache layer you would like.