Released: December 6, 2024
Complete Discord webhook implementation with built-in rate limiting and message management.
const { Webhook } = require('novecord');const webhook = new Webhook('WEBHOOK_ID', 'WEBHOOK_TOKEN', { username: 'Custom Bot', avatar_url: 'https://example.com/avatar.png'});// Send message with embedconst embed = new Embed() .setTitle('Server Status') .setColor(0x00ff00);await webhook.send({ content: 'Status update:', embeds: [embed]});
Request throttling and queue management system for controlling API rate limits.
const { Throttler } = require('novecord');const apiThrottler = new Throttler(50); // Max 50 concurrent requests// Throttle API callsasync function sendMessageThrottled(channelId, content) { return apiThrottler.enqueue(async () => { return client.sendMessage(channelId, { content }); });}// Send multiple messages safelyfor (const message of messages) { await sendMessageThrottled(channelId, message);}
Added validation for heartbeat responses from Discord Gateway to detect and handle unhealthy connections.
Implemented robust reconnection logic with exponential backoff to handle connection drops gracefully.
Added session resume capability to continue from where the bot left off after reconnection.
npm install novecord@latest
This update brings major new features for webhook management and request throttling.
Your NoveCord bots now have enterprise-grade reliability and rate limit protection.
Components V2 support, interaction fixes, and structure updates...
Previous release with version info API and improved uptime tracking...