# discord.js-selfbot-v13

> An unofficial discord.js fork for creating selfbots

Latest version **3.7.1** (published 2025-10-11) · GNU General Public License v3.0 license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install discord.js-selfbot-v13
pnpm add discord.js-selfbot-v13
yarn add discord.js-selfbot-v13
bun add discord.js-selfbot-v13
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 3.7.1 |
| Published | 2025-10-11 |
| First published | 2022-03-19 |
| Weekly downloads | 0 |
| License | GNU General Public License v3.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=20.18 |
| Dependencies | 15 |
| Unpacked size | 1.9 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 1234 |
| Author | aiko-chan-ai |
| Maintainers | elysia2k6 |
| Keywords | discord.js, discord.js v13, selfbot, selfbot v13, djs, api, bot, node, discord, client, discordapp |

## Links

- npm: https://www.npmjs.com/package/discord.js-selfbot-v13
- Repository: https://github.com/aiko-chan-ai/discord.js-selfbot-v13
- Homepage: https://github.com/aiko-chan-ai/discord.js-selfbot-v13#readme
- Issues: https://github.com/aiko-chan-ai/discord.js-selfbot-v13/issues
- npm.io page: https://npm.io/package/discord.js-selfbot-v13

## Dependencies (15)

- [ws](https://npm.io/package/ws.md) ^8.16.0
- [otplib](https://npm.io/package/otplib.md) ^12.0.1
- [qrcode](https://npm.io/package/qrcode.md) ^1.5.4
- [undici](https://npm.io/package/undici.md) ^7.11.0
- [tree-kill](https://npm.io/package/tree-kill.md) ^1.2.2
- [werift-rtp](https://npm.io/package/werift-rtp.md) ^0.8.4
- [prism-media](https://npm.io/package/prism-media.md) ^1.3.5
- [fetch-cookie](https://npm.io/package/fetch-cookie.md) ^3.1.0
- [find-process](https://npm.io/package/find-process.md) ^2.0.0
- [tough-cookie](https://npm.io/package/tough-cookie.md) ^5.1.2
- [discord-api-types](https://npm.io/package/discord-api-types.md) ^0.38.15
- [@discordjs/builders](https://npm.io/package/@discordjs/builders.md) ^1.6.3
- [@sapphire/shapeshift](https://npm.io/package/@sapphire/shapeshift.md) ^4.0.0
- [@discordjs/collection](https://npm.io/package/@discordjs/collection.md) ^2.1.1
- [@sapphire/async-queue](https://npm.io/package/@sapphire/async-queue.md) ^1.5.5

## 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

- 3.7.1 (latest) — 2025-10-11
- 1.4.4-dev.fc7f02e (dev) — 2022-05-14
- 3.7.0 — 2025-07-12
- 3.6.1 — 2025-03-14
- 3.6.0 — 2025-02-15
- 3.5.1 — 2025-01-21
- 3.5.0 — 2025-01-21
- 3.4.6 — 2024-12-13
- 3.4.5 — 2024-12-01
- 3.4.4 — 2024-11-28
- 3.4.3 — 2024-11-27
- 3.4.2 — 2024-10-29
- 3.4.1 — 2024-10-27
- 3.4.0 — 2024-09-17
- 3.3.0 — 2024-07-24
- … 239 more at https://npm.io/package/discord.js-selfbot-v13/versions

## README

> [!IMPORTANT]
> ## Project Archival
> 
> **This project is no longer actively maintained and this repository has been archived.**
>
> You can read the full announcement [here](https://github.com/aiko-chan-ai/discord.js-selfbot-v13/discussions/1743)

<div align="center">
  <br />
  <p>
    <a href="https://discord.js.org"><img src="https://discord.js.org/static/logo.svg" width="546" alt="discord.js" /></a>
  </p>
</div>

> [!CAUTION]
> **The use of this module under a different name on NPM (or another source besides this Github) is not associated with this library.**
> **When using these libraries, you accept the risk of exposing your Discord Token.**

## About

<strong>Welcome to `discord.js-selfbot-v13@v3.7`, based on `discord.js@13.17` and backport `discord.js@14.21.0`</strong>

- discord.js-selfbot-v13 is a [Node.js](https://nodejs.org) module that allows user accounts to interact with the Discord API v9.


<div align="center">
  <p>
    <a href="https://www.npmjs.com/package/discord.js-selfbot-v13"><img src="https://img.shields.io/npm/v/discord.js-selfbot-v13.svg" alt="npm version" /></a>
    <a href="https://www.npmjs.com/package/discord.js-selfbot-v13"><img src="https://img.shields.io/npm/dt/discord.js-selfbot-v13.svg" alt="npm downloads" /></a>
    <a href="https://github.com/aiko-chan-ai/discord.js-selfbot-v13/actions"><img src="https://github.com/aiko-chan-ai/discord.js-selfbot-v13/actions/workflows/lint.yml/badge.svg" alt="Tests status" /></a>
  </p>
</div>

> [!WARNING]
> **I don't take any responsibility for blocked Discord accounts that used this module.**

> [!CAUTION]
> **Using this on a user account is prohibited by the [Discord TOS](https://discord.com/terms) and can lead to the account block.**

### <strong>[Document Website](https://discordjs-self-v13.netlify.app/)</strong>

### <strong>[Example Code](https://github.com/aiko-chan-ai/discord.js-selfbot-v13/tree/main/examples)</strong>

## Features (User)
- [x] Message
- [x] ClientUser: Status, Activity, RemoteAuth, etc.
- [X] Guild: Fetch Members, Join / Leave, Top emojis, etc.
- [X] Interactions: Slash Commands, Buttons, Menu, Modal.
- [X] Captcha & TOTP Handler
- [X] Documentation
- [x] Voice & Video
- [ ] Everything

## Installation

> [!NOTE]
> **Node.js 20.18.0 or newer is required**

```sh-session
npm install discord.js-selfbot-v13@latest
```

## Example

```js
const { Client } = require('discord.js-selfbot-v13');
const client = new Client();

client.on('ready', async () => {
  console.log(`${client.user.username} is ready!`);
})

client.login('token');
```

## Get Token ?

- Based: [findByProps](https://discord.com/channels/603970300668805120/1085682686607249478/1085682686607249478)

<strong>Run code (Discord Console - [Ctrl + Shift + I])</strong>

```js
window.webpackChunkdiscord_app.push([
	[Symbol()],
	{},
	req => {
		if (!req.c) return;
		for (let m of Object.values(req.c)) {
			try {
				if (!m.exports || m.exports === window) continue;
				if (m.exports?.getToken) return copy(m.exports.getToken());
				for (let ex in m.exports) {
					if (m.exports?.[ex]?.getToken && m.exports[ex][Symbol.toStringTag] !== 'IntlMessagesProxy') return copy(m.exports[ex].getToken());
				}
			} catch {}
		}
	},
]);

window.webpackChunkdiscord_app.pop();
console.log('%cWorked!', 'font-size: 50px');
console.log(`%cYou now have your token in the clipboard!`, 'font-size: 16px');
```

## Contributing

- Before creating an issue, please ensure that it hasn't already been reported/suggested, and double-check the
[documentation](https://discordjs-self-v13.netlify.app/).  
- See [the contribution guide](https://github.com/discordjs/discord.js/blob/main/.github/CONTRIBUTING.md) if you'd like to submit a PR.

## Need help?
Github Discussion: [Here](https://github.com/aiko-chan-ai/discord.js-selfbot-v13/discussions)

## Credits
- [Discord.js](https://github.com/discordjs/discord.js)

## <strong>Other project(s)

- 📘 [***aiko-chan-ai/DiscordBotClient***](https://github.com/aiko-chan-ai/DiscordBotClient) <br/>
  A patched version of discord, with bot login support

## Star History

[![Star History Chart](https://api.star-history.com/svg?repos=aiko-chan-ai/discord.js-selfbot-v13&type=Date)](https://star-history.com/#aiko-chan-ai/discord.js-selfbot-v13&Date)

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