# paqu.js

> A powerful, easy-to-use library that allows you to interact with the Discord API.

Latest version **1.4.0** (published 2024-03-04) · Apache-2.0 license · 0 weekly downloads

## Install

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

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.4.0 |
| Published | 2024-03-04 |
| First published | 2023-05-25 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 11 |
| Unpacked size | 490.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Author | hanzydev |
| Maintainers | hanzydev |
| Keywords | paqu.js, discord, discord-api, discord-api-wrapper, discordapp, bot, wrapper, api, node, ws, rest, client |

## Links

- npm: https://www.npmjs.com/package/paqu.js
- Repository: https://github.com/paqujs/paqu.js
- Homepage: https://github.com/paqujs/paqu.js#readme
- Issues: https://github.com/paqujs/paqu.js/issues
- npm.io page: https://npm.io/package/paqu.js

## Dependencies (11)

- [defu](https://npm.io/package/defu.md) ^6.1.4
- [tslib](https://npm.io/package/tslib.md) ^2.6.2
- [@paqujs/ws](https://npm.io/package/@paqujs/ws.md) ^1.2.3
- [@paqujs/rest](https://npm.io/package/@paqujs/rest.md) ^1.1.5
- [@paqujs/shared](https://npm.io/package/@paqujs/shared.md) ^1.1.10
- [fast-deep-equal](https://npm.io/package/fast-deep-equal.md) ^3.1.3
- [@paqujs/builders](https://npm.io/package/@paqujs/builders.md) ^1.0.9
- [@paqujs/bitfields](https://npm.io/package/@paqujs/bitfields.md) ^1.1.7
- [@paqujs/resolvers](https://npm.io/package/@paqujs/resolvers.md) ^1.1.6
- [discord-api-types](https://npm.io/package/discord-api-types.md) ^0.37.71
- [@sapphire/snowflake](https://npm.io/package/@sapphire/snowflake.md) ^3.5.3

## Alternatives

- [launchdarkly-js-client-sdk](https://npm.io/package/launchdarkly-js-client-sdk.md) — 2.5M weekly downloads
- [@elastic/elasticsearch](https://npm.io/package/@elastic/elasticsearch.md) — 2.1M weekly downloads
- [@c8y/client](https://npm.io/package/@c8y/client.md) — 15.3K weekly downloads
- [@signaldb/maverickjs](https://npm.io/package/@signaldb/maverickjs.md) — 1.7K weekly downloads
- [@bbc/http-transport-cache](https://npm.io/package/@bbc/http-transport-cache.md) — 1.2K weekly downloads

## Recent versions

- 1.4.0 (latest) — 2024-03-04
- 1.3.1 — 2024-02-02
- 1.3.0 — 2024-02-02
- 1.2.7 — 2023-12-18
- 1.2.6 — 2023-09-06
- 1.2.5 — 2023-09-06
- 1.2.3 — 2023-09-03
- 1.2.1 — 2023-08-16
- 1.2.0 — 2023-08-15
- 1.1.2 — 2023-07-22
- 1.1.1 — 2023-07-16
- 1.0.8 — 2023-07-16
- 1.0.7 — 2023-07-10
- 1.0.5 — 2023-07-10
- 1.0.3 — 2023-06-07
- … 2 more at https://npm.io/package/paqu.js/versions

## README

# paqu.js

paqu.js is an easy-to-use [Node.js](https://nodejs.org/) library for interacting with the [Discord API](https://discord.com/developers/docs/)'s.

## Installation

Node.js 16.x or higher is required.

```bash
npm install paqu.js
yarn add paqu.js
pnpm add paqu.js
```

## Features

-   Easy to use
-   Object-oriented
-   Lightweight
-   Fast
-   TypeScript support
-   100% coverage of the Discord API

## Optional Dependencies

-   [zlib-sync](https://www.npmjs.com/package/zlib-sync) for faster WebSocket data (de)compression
-   [erlpack](https://www.npmjs.com/package/erlpack) for faster WebSocket data (de)serialisation

## Usage

```ts
import { Client } from 'paqu.js';

const client = new Client({
    ws: {
        intents: ['Guilds', 'GuildMessages', 'MessageContent'],
    },
});

client.ws.on('ready', () => {
    console.log(`Logged in as ${client.user.username}!`);
});

client.ws.on('messageCreate', (message) => {
    if (message.content === '!ping') {
        message.reply({
            content: `Pong! :ping_pong: **${client.ws.ping}ms**`,
        });
    }
});

client.ws.connect('your-super-secret-token');
```

## Links

-   [Website](https://paqujs.github.io/)
-   [Documentation](https://paqujs.github.io/packages/sharding)
-   [GitHub](https://github.com/paqujs/paqujs/tree/main/packages/sharding)
-   [NPM](https://www.npmjs.com/package/@paqujs/sharding)
-   [Discord](https://discord.gg/fJva3Scm5G)

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