fast-discord-bot
v0.0.1
Published
This SDK is designed to make using discord.js easier.
Downloads
95
Readme
Fast Discord Bot
fast-discord-bot is an SDK designed to simplify the use of the discord.js library. With it, you can easily interact with the Discord API, manage intents, and customize bot information, such as avatar, banner, and biography.
Features
- Simplified Login: Start your bot easily by connecting to Discord using a token.
- Intent Management: Automatically enable intents to prevent errors when accessing bot features.
- Profile Customization: Change the bot's avatar, banner, and biography directly in the code.
Installation
Prerequisites
- Discord Developer Portal to obtain a bot token.
How to Install
npm install fast-discord-botExample
import { Client } from 'discord.js';
import { FastClient } from 'fast-discord-bot';
const client = new Client({
intents: FastClient.AllIntents,
partials: FastClient.AllPartials
});
const fastBot = new FastClient(client);
// Enable intents in Discord Developers
await fastBot.ActivateIntents('YOUR_TOKEN_HERE');
// Start the bot with the token
fastBot.start('YOUR_TOKEN_HERE');
// Customize the bot's profile
const userClient = fastBot.user();
await userClient.avatar.set('NEW_AVATAR_URL'); // used discord.js
await userClient.banner.set('NEW_BANNER_URL'); // used discord.js
await userClient.bio.set('New bot biography');