1.0.16 • Published 23 days ago

handler.dts v1.0.16

Weekly downloads
-
License
MIT
Repository
github
Last release
23 days ago

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

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 🏓')
}
1.0.16

23 days ago

1.0.15

24 days ago

1.0.14

30 days ago

1.0.13

30 days ago

1.0.12

1 month ago

1.0.11

1 month ago

1.0.9

1 month ago

1.0.8

1 month ago

1.0.7

1 month ago

1.0.6

1 month ago

1.0.5

1 month ago

1.0.4

1 month ago

1.0.3

1 month ago

1.0.2

1 month ago

1.0.1

1 month ago

1.0.0

1 month ago