# dinteractions.js

> A discord interactions library.

Latest version **1.0.14** (published 2023-04-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install dinteractions.js
pnpm add dinteractions.js
yarn add dinteractions.js
bun add dinteractions.js
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.14 |
| Published | 2023-04-03 |
| First published | 2023-03-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 35.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | sheat |
| Maintainers | sheat |

## Links

- npm: https://www.npmjs.com/package/dinteractions.js
- npm.io page: https://npm.io/package/dinteractions.js

## Dependencies (5)

- [express](https://npm.io/package/express.md) ^4.18.2
- [tweetnacl](https://npm.io/package/tweetnacl.md) ^1.0.3
- [@discordjs/rest](https://npm.io/package/@discordjs/rest.md) ^1.6.0
- [discord-api-types](https://npm.io/package/discord-api-types.md) ^0.37.37
- [express-async-errors](https://npm.io/package/express-async-errors.md) ^3.1.1

## Recent versions

- 1.0.14 (latest) — 2023-04-03
- 1.0.13 — 2023-04-03
- 1.0.12 — 2023-03-30
- 1.0.11 — 2023-03-27
- 1.0.10 — 2023-03-27
- 1.0.9 — 2023-03-27
- 1.0.8 — 2023-03-27
- 1.0.7 — 2023-03-27
- 1.0.6 — 2023-03-27
- 1.0.5 — 2023-03-26
- 1.0.4 — 2023-03-26
- 1.0.3 — 2023-03-26
- 1.0.2 — 2023-03-26
- 1.0.1 — 2023-03-26
- 1.0.0 — 2023-03-26

## README

# dinteractions.js

A discord interactions library.

```typescript
import { Client } from 'dinteractions.js'

const client = new Client({
    applicationId: 'DISCORD_APPLICATION_ID',
    publicKey: 'DISCORD_PUBLIC_KEY',
    token: 'DISCORD_BOT_TOKEN'
})

client.addCommand({
    data: {
        name: 'hello',
        description: 'Replies with hello message.'
    },
    handle: async (client, interaction) => {
        await client.sendReply(interaction, {
            content: 'hello'
        })
    }
})

client.syncCommands()

client.serve('/interactions', 8000)
```

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