# dih4djs

> interaction handler for the discord.js library

Latest version **1.1.1** (published 2022-11-20) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install dih4djs
pnpm add dih4djs
yarn add dih4djs
bun add dih4djs
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2022-11-20 |
| First published | 2022-11-20 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 246.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | OoP1nk |
| Maintainers | oop1nk |
| Keywords | discord.js, discordjs, discord, interaction-handler, command-handler, slashcommands, contextcommands, handler |

## Links

- npm: https://www.npmjs.com/package/dih4djs
- Repository: https://github.com/OoP1nk/DIH4DJS
- Homepage: https://github.com/OoP1nk/DIH4DJS#readme
- Issues: https://github.com/OoP1nk/DIH4DJS/issues
- npm.io page: https://npm.io/package/dih4djs

## Dependencies (2)

- [chalk](https://npm.io/package/chalk.md) ^4.1.2
- [discord.js](https://npm.io/package/discord.js.md) ^14.6.0

## Recent versions

- 1.1.1 (latest) — 2022-11-20

## README

# About
DIH4DJS is a powerful interaction handler module for the [discord.js](https://https://github.com/discordjs/discord.js) package.

This library is based off of the java package [DIH4JDA](https://github.com/DynxstyGIT/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**
```sh-session
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](https://github.com/OoP1nk/DIH4DJS/wiki).

## Setting up the handler
```javascript
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](https://github.com/OoP1nk/DIH4DJS/.github/CONTIBUTING.md)

---
_Source: https://npm.io/package/dih4djs · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
