ease-discord-js

1.1.3 • Public • Published

EaseDiscordJS

EaseDiscordJS is an unofficial extension of the "discord.js" library. Our extension aims to simplify the development of Discord bots, promoting cleaner code and easier maintenance.

Features

  • Error prevention with user-friendly messages
  • Callback functions
  • Less code, more efficiency
  • Code and performance optimization
  • Comprehensive documentation

Installation

npm install ease-discord-js

Example of use

import { EaseClient } from "ease-discord-js";

const easeClient = new EaseClient("YOUR_TOKEN_HERE");

// Setting the paths for the commands and components
easeClient.set("commandsPath", "./commands");
easeClient.set("componentsPath", "./components"); //optional

// Setting default values for the components, you can also set them individually (optional)
easeClient.setDefault("button", { style: "Primary" });

const client = easeClient.login();

client.on('ready', async (client) => {
    console.log(`Logged in as ${client.user.tag}!`);
});

You can also pass the intents you want to use within the object that will be sent to EasyLogin. If the intents are not passed, all intents will be sent to Discord.

Example of login using intents:

import Discord from "discord.js";
import { EaseClient } from "ease-discord-js";

const intents = [
    Discord.GatewayIntentBits.Guilds,
    Discord.GatewayIntentBits.MessageContent
];

const easeClient = new EaseClient("YOUR_TOKEN_HERE");
easeClient.set("commandsPath", "./commands");
easeClient.set("intents", intents);

const client = easeClient.login();

client.on('ready', async (client) => {
    console.log(`Logged in as ${client.user.tag}!`);
});

This is just a little of our project, to see more details visit our documentation

Authors

Package Sidebar

Install

npm i ease-discord-js

Weekly Downloads

25

Version

1.1.3

License

ISC

Unpacked Size

30 kB

Total Files

15

Last publish

Collaborators

  • kevencampos