dih4djs
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

About

DIH4DJS is a powerful interaction handler module for the discord.js package.

This library is based off of the java package DIH4JDA with adaptations with the obvious change (pst its in javascript).

Installation

DIH4DJS is built using discord.js v14.6.0 therefore requiring Node.js version 16.9.0 or newer

npm install dih4djs
yarn add dih4djs
pnpm add dih4djs

Setup/Configuration

For a more indepth description on how to register commands feel free to look at the Wiki.

Setting up the handler

const { Client } = require('discord.js');
const { DIH4DJS, DIH4DJSLogger } = require('dih4djs');

const client = new Client({
    intents: [YOUR_INTENTS]
});

const dih4djs = new DIH4DJS(client, {
    packages: ["./commands/", "./components/"],
    registerOnReady: true,
    logging: {
        enabled: true,
        disabled: [
            DIH4DJSLogger.Type.SlashCommandRegistered
        ]
    }
});

client.login("YOUR_TOKEN_HERE");

Contributing

When contributing please follow the steps provided: CONTRIBUTING

Package Sidebar

Install

npm i dih4djs

Weekly Downloads

3

Version

1.1.1

License

Apache-2.0

Unpacked Size

252 kB

Total Files

102

Last publish

Collaborators

  • oop1nk