handler.dts
TypeScript icon, indicating that this package has built-in type declarations

1.0.16 • Public • Published

v

Introduction

handler.dts is a powerful tool designed to simplify the management of Discord.js bot files. It aims to enhance productivity by reducing the amount of time and code required to handle various aspects of a Discord bot, while also improving performance.

Installing

 $ npm init
 $ npm i discord.js
 $ npm i handler.dts
You can Handel Files with this package

SetUp

const { Client } = require('discord.js');
const { Application } = require('handler.dts');

const client = new Client({
    intents: 3276799
});

new Application(client, {
    commands: __dirname.concat('/commands'),
    events: __dirname.concat('/events'),
});

client.Application.build();

client.login('Token');

commands Setup

const { Message } = require('discord.js');
const { CommandBuilder } = require('handler.dts');

CommandBuilder.$N`ping`.$M(Execution);

/**
 * @param {Message} message 
 */
function Execution(message) {
    message.replyNoMention('pong 🏓')
}

Package Sidebar

Install

npm i handler.dts

Weekly Downloads

3

Version

1.0.16

License

MIT

Unpacked Size

24.9 kB

Total Files

13

Last publish

Collaborators

  • ziad_emad