Files
discord.js-selfbot/README.md

125 lines
4.2 KiB
Markdown
Raw Normal View History

2025-10-11 17:43:36 +07:00
> [!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)
2022-03-19 17:37:45 +07:00
<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>
2025-01-21 11:00:22 +07:00
> [!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.**
2024-09-17 22:16:41 +07:00
2022-03-19 17:37:45 +07:00
## About
2025-07-12 21:24:18 +07:00
<strong>Welcome to `discord.js-selfbot-v13@v3.7`, based on `discord.js@13.17` and backport `discord.js@14.21.0`</strong>
2022-05-14 15:06:15 +07:00
- discord.js-selfbot-v13 is a [Node.js](https://nodejs.org) module that allows user accounts to interact with the Discord API v9.
2022-03-19 17:37:45 +07:00
<div align="center">
<p>
2022-04-27 10:51:39 +07:00
<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>
2022-04-17 17:30:47 +07:00
<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>
2025-01-21 11:00:22 +07:00
> [!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.**
2022-03-19 17:37:45 +07:00
2024-01-14 17:53:18 +07:00
### <strong>[Document Website](https://discordjs-self-v13.netlify.app/)</strong>
2024-01-14 17:53:18 +07:00
### <strong>[Example Code](https://github.com/aiko-chan-ai/discord.js-selfbot-v13/tree/main/examples)</strong>
## Features (User)
2025-01-21 11:00:22 +07:00
- [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
2022-05-14 15:06:15 +07:00
- [X] Documentation
2025-01-21 11:00:22 +07:00
- [x] Voice & Video
- [ ] Everything
2022-03-19 17:37:45 +07:00
## Installation
2025-01-21 11:00:22 +07:00
> [!NOTE]
2025-03-01 20:02:34 +07:00
> **Node.js 20.18.0 or newer is required**
2023-03-02 12:01:42 +07:00
2022-03-19 17:37:45 +07:00
```sh-session
npm install discord.js-selfbot-v13@latest
2022-03-19 17:37:45 +07:00
```
2022-03-19 17:37:45 +07:00
## Example
```js
2022-03-19 17:52:50 +07:00
const { Client } = require('discord.js-selfbot-v13');
2024-01-14 17:53:18 +07:00
const client = new Client();
2022-03-19 17:37:45 +07:00
client.on('ready', async () => {
console.log(`${client.user.username} is ready!`);
2022-03-19 17:37:45 +07:00
})
client.login('token');
```
## Get Token ?
2025-06-08 18:45:03 +07:00
- Based: [findByProps](https://discord.com/channels/603970300668805120/1085682686607249478/1085682686607249478)
2022-10-03 19:30:49 +07:00
<strong>Run code (Discord Console - [Ctrl + Shift + I])</strong>
```js
2022-05-06 23:18:33 +07:00
window.webpackChunkdiscord_app.push([
2025-06-08 18:45:03 +07:00
[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 {}
}
},
2022-05-06 23:18:33 +07:00
]);
2025-06-08 18:45:03 +07:00
2025-01-21 11:00:22 +07:00
window.webpackChunkdiscord_app.pop();
2022-05-06 23:18:33 +07:00
console.log('%cWorked!', 'font-size: 50px');
console.log(`%cYou now have your token in the clipboard!`, 'font-size: 16px');
```
2022-06-26 13:54:43 +07:00
## Contributing
2022-03-19 17:52:50 +07:00
2022-03-20 10:47:44 +07:00
- Before creating an issue, please ensure that it hasn't already been reported/suggested, and double-check the
2024-01-14 17:53:18 +07:00
[documentation](https://discordjs-self-v13.netlify.app/).
2022-03-20 10:47:44 +07:00
- See [the contribution guide](https://github.com/discordjs/discord.js/blob/main/.github/CONTRIBUTING.md) if you'd like to submit a PR.
2022-03-19 17:52:50 +07:00
## Need help?
2022-11-12 18:11:30 +07:00
Github Discussion: [Here](https://github.com/aiko-chan-ai/discord.js-selfbot-v13/discussions)
## Credits
2022-05-06 23:18:33 +07:00
- [Discord.js](https://github.com/discordjs/discord.js)
2024-07-03 22:56:00 +07:00
## <strong>Other project(s)
2023-02-22 12:08:33 +07:00
- 📘 [***aiko-chan-ai/DiscordBotClient***](https://github.com/aiko-chan-ai/DiscordBotClient) <br/>
A patched version of discord, with bot login support
2022-06-13 23:53:43 +07:00
2023-06-15 17:11:54 +07:00
## Star History
2025-06-08 18:45:03 +07:00
[![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)