slfcrd
v1.0.2
Published
A modern, lightweight Discord selfbot library based on native fetch.
Maintainers
Readme
slfcrd
A modern, lightweight, and powerful Discord selfbot library based on native fetch, designed with a focus on efficiency and a Discord.js-like developer experience.
🚀 Features
- Discord.js-style Architecture: Familiar manager-based cache and structure patterns.
- Enhanced Message Handling: Full support for reactions, pinning, threads, and bulk deletion.
- Robust Voice System:
- Guild Voice: Powered by
@discordjs/voicewith a built-in queue system, volume control, and move handling. - DM Voice: Specialized custom implementation for DM calls, including screen and video streaming support.
- Guild Voice: Powered by
- Guild Management: Advanced guild joining with optional bypass for onboarding and verification.
- Modern Internals: Built on native fetch for minimal dependencies and high performance.
- TypeScript Support: Full type definitions included for a superior development experience.
- Detailed Error Handling: Custom
DiscordAPIErrorand structured error utilities for precise debugging.
📦 Installation
npm install slfcrd🛠️ Quick Start
const { Client } = require('slfcrd');
const client = new Client();
client.on('ready', () => {
console.log(`Logged in as ${client.user.tag}!`);
});
client.on('messageCreate', async (message) => {
// Only respond to our own messages
if (message.author.id !== client.user.id) return;
if (message.content === '!ping') {
await message.reply('Pong! 🏓');
}
});
// It is highly recommended to use environment variables for your token
client.login(process.env.DISCORD_TOKEN);📖 Documentation
For detailed guides and API references, check out the documentation on GitHub:
- Client: Main client class, options, and properties.
- Message: Advanced message manipulation and interaction.
- VoiceManager: Guild and DM voice connections and audio playback.
- GuildManager: Server management and bypass features.
- Events: Comprehensive list of all emitted events.
🌟 Examples
Ready-to-use scripts available in the GitHub Repository:
- basic.js: Simple ping-pong example.
- voice.js: Guild voice connection with audio playback and queue.
- call.js: DM voice call and streaming.
- enhanced_features.js: Demonstration of reactions, pinning, and threads.
⚠️ Important Notes
Security
Never share your user token. We recommend storing your token in a .env file (and ensuring it's in your .gitignore) or using system environment variables.
Terms of Service
Selfbotting is against Discord's Terms of Service. This library is for educational purposes. Use it responsibly and at your own risk.
Captcha
This library does not support automated captcha solving. If Discord requires a captcha for an action (like joining a guild), the library will throw a descriptive error.
📜 License
ISC License
