2022-03-21 11:15:44 +00:00
|
|
|
# Discord.js Selfbot v13
|
2022-03-25 05:37:56 +00:00
|
|
|
- Install: <strong>```npm i discord.js-selfbot-v13@latest```</strong>
|
2022-03-22 10:09:50 +00:00
|
|
|
|
|
|
|
## Client Settings
|
|
|
|
<details>
|
|
|
|
<summary><strong>Click to show</strong></summary>
|
|
|
|
|
|
|
|
```js
|
|
|
|
new Client({
|
2022-03-25 05:37:56 +00:00
|
|
|
checkUpdate: true, // Check Package Update (Bot Ready) [Enable Deafult]
|
|
|
|
readyStatus: false, // Set Custom Status sync from Account (Bot Ready) [Disable Default]
|
2022-03-22 10:09:50 +00:00
|
|
|
})
|
|
|
|
```
|
|
|
|
</details>
|
|
|
|
|
2022-03-21 11:15:44 +00:00
|
|
|
## User Settings
|
|
|
|
<details>
|
|
|
|
<summary><strong>Click to show</strong></summary>
|
|
|
|
|
|
|
|
```js
|
|
|
|
client.setting // Return Data Setting User;
|
|
|
|
client.setting.setDisplayCompactMode(true | false); // Message Compact Mode
|
|
|
|
client.setting.setTheme('dark' | 'light'); // Discord App theme
|
|
|
|
client.setting.setLocale(value); // Set Language
|
|
|
|
/**
|
|
|
|
* * Locale Setting, must be one of:
|
|
|
|
* * `DANISH`
|
|
|
|
* * `GERMAN`
|
|
|
|
* * `ENGLISH_UK`
|
|
|
|
* * `ENGLISH_US`
|
|
|
|
* * `SPANISH`
|
|
|
|
* * `FRENCH`
|
|
|
|
* * `CROATIAN`
|
|
|
|
* * `ITALIAN`
|
|
|
|
* * `LITHUANIAN`
|
|
|
|
* * `HUNGARIAN`
|
|
|
|
* * `DUTCH`
|
|
|
|
* * `NORWEGIAN`
|
|
|
|
* * `POLISH`
|
|
|
|
* * `BRAZILIAN_PORTUGUESE`
|
|
|
|
* * `ROMANIA_ROMANIAN`
|
|
|
|
* * `FINNISH`
|
|
|
|
* * `SWEDISH`
|
|
|
|
* * `VIETNAMESE`
|
|
|
|
* * `TURKISH`
|
|
|
|
* * `CZECH`
|
|
|
|
* * `GREEK`
|
|
|
|
* * `BULGARIAN`
|
|
|
|
* * `RUSSIAN`
|
|
|
|
* * `UKRAINIAN`
|
|
|
|
* * `HINDI`
|
|
|
|
* * `THAI`
|
|
|
|
* * `CHINA_CHINESE`
|
|
|
|
* * `JAPANESE`
|
|
|
|
* * `TAIWAN_CHINESE`
|
|
|
|
* * `KOREAN`
|
|
|
|
* @param {string} value
|
|
|
|
* @returns {locale}
|
|
|
|
*/
|
|
|
|
```
|
|
|
|
|
|
|
|
</details>
|
|
|
|
|
|
|
|
## Discord User Info
|
|
|
|
<details>
|
|
|
|
<summary><strong>Click to show</strong></summary>
|
|
|
|
|
|
|
|
Code:
|
|
|
|
```js
|
|
|
|
GuildMember.user.getProfile();
|
|
|
|
// or
|
|
|
|
User.getProfile();
|
|
|
|
```
|
|
|
|
Response
|
|
|
|
```js
|
|
|
|
User {
|
|
|
|
id: '721746046543331449',
|
|
|
|
bot: false,
|
|
|
|
system: false,
|
|
|
|
flags: UserFlagsBitField { bitfield: 256 },
|
|
|
|
friend: false,
|
|
|
|
blocked: false,
|
|
|
|
connectedAccounds: [],
|
|
|
|
premiumSince: 1623357181151,
|
|
|
|
premiumGuildSince: 0,
|
|
|
|
mutualGuilds: Collection(3) [Map] {
|
|
|
|
'906765260017516605' => { id: '906765260017516605', nick: null },
|
|
|
|
'809133733591384155' => { id: '809133733591384155', nick: 'uwu' },
|
|
|
|
'926065180788531261' => { id: '926065180788531261', nick: 'shiro' }
|
|
|
|
},
|
|
|
|
username: 'Shiraori',
|
|
|
|
discriminator: '1782',
|
|
|
|
avatar: 'f9ba7fb35b223e5f1a12eb910faa40c2',
|
|
|
|
banner: undefined,
|
|
|
|
accentColor: undefined
|
|
|
|
}
|
|
|
|
```
|
|
|
|
</details>
|
|
|
|
|
|
|
|
## Discord User Friend / Blocked
|
|
|
|
<details>
|
|
|
|
<summary><strong>Click to show</strong></summary>
|
|
|
|
|
|
|
|
Code:
|
|
|
|
```js
|
|
|
|
GuildMember.user.setFriend();
|
|
|
|
User.unFriend();
|
|
|
|
Message.member.user.sendFriendRequest();
|
|
|
|
// or
|
|
|
|
GuildMember.user.setBlock();
|
|
|
|
User.unBlock();
|
|
|
|
```
|
|
|
|
Response
|
|
|
|
```js
|
|
|
|
User {
|
|
|
|
id: '721746046543331449',
|
|
|
|
bot: false,
|
|
|
|
system: false,
|
|
|
|
flags: UserFlagsBitField { bitfield: 256 },
|
|
|
|
friend: false,
|
|
|
|
blocked: false,
|
|
|
|
connectedAccounds: [],
|
|
|
|
premiumSince: 1623357181151,
|
|
|
|
premiumGuildSince: 0,
|
|
|
|
mutualGuilds: Collection(3) [Map] {
|
|
|
|
'906765260017516605' => { id: '906765260017516605', nick: null },
|
|
|
|
'809133733591384155' => { id: '809133733591384155', nick: 'uwu' },
|
|
|
|
'926065180788531261' => { id: '926065180788531261', nick: 'shiro' }
|
|
|
|
},
|
|
|
|
username: 'Shiraori',
|
|
|
|
discriminator: '1782',
|
|
|
|
avatar: 'f9ba7fb35b223e5f1a12eb910faa40c2',
|
|
|
|
banner: undefined,
|
|
|
|
accentColor: undefined
|
|
|
|
}
|
|
|
|
```
|
|
|
|
</details>
|
|
|
|
|
|
|
|
## Discord Guild set position
|
|
|
|
<details>
|
|
|
|
<summary><strong>Click to show</strong></summary>
|
|
|
|
|
|
|
|
Code:
|
|
|
|
```js
|
|
|
|
guild.setPosition(position, type, folderID);
|
|
|
|
// Position: The guild's index in the directory or out of the directory
|
|
|
|
// Type:
|
|
|
|
// + 'FOLDER': Move guild to folder
|
|
|
|
// + 'HOME': Move the guild out of the directory
|
|
|
|
// FolderID: The folder's ID , if you want to move the guild to a folder
|
|
|
|
```
|
|
|
|
Response
|
|
|
|
```js
|
2022-03-25 05:37:56 +00:00
|
|
|
Guild {}
|
2022-03-21 11:15:44 +00:00
|
|
|
```
|
|
|
|
</details>
|
|
|
|
|
2022-03-21 13:12:36 +00:00
|
|
|
## Custom Status and RPC
|
|
|
|
|
|
|
|
<details>
|
|
|
|
<summary><strong>Click to show</strong></summary>
|
2022-03-21 15:24:08 +00:00
|
|
|
Custom Status
|
|
|
|
|
|
|
|
```js
|
2022-03-21 16:40:26 +00:00
|
|
|
const RichPresence = require('discord-rpc-contructor'); // My module :))
|
2022-03-21 15:24:08 +00:00
|
|
|
const custom = new RichPresence.CustomStatus()
|
2022-03-24 10:55:32 +00:00
|
|
|
.setUnicodeEmoji('🎮') // Set Unicode Emoji [Using one]
|
2022-03-25 05:37:56 +00:00
|
|
|
.setDiscordEmoji({ // Set Custom Emoji (Nitro Classic / Boost) [Using one]
|
2022-03-21 15:24:08 +00:00
|
|
|
name: 'nom',
|
|
|
|
id: '737373737373737373',
|
|
|
|
animated: false,
|
|
|
|
})
|
2022-03-24 10:55:32 +00:00
|
|
|
.setState('Testing') // Name of presence
|
2022-03-21 15:24:08 +00:00
|
|
|
.toDiscord();
|
|
|
|
client.user.setActivity(custom);
|
|
|
|
```
|
|
|
|
|
2022-03-22 10:09:50 +00:00
|
|
|
Rich Presence [Custom]
|
2022-03-21 15:24:08 +00:00
|
|
|
```js
|
2022-03-22 10:09:50 +00:00
|
|
|
const RPC = require('discord-rpc-contructor');
|
|
|
|
const r = new RPC.Rpc()
|
|
|
|
.setApplicationId('817229550684471297')
|
|
|
|
.setType(0)
|
|
|
|
.setState('State')
|
|
|
|
.setName('Name')
|
|
|
|
.setDetails('Details')
|
|
|
|
.setParty({
|
|
|
|
size: [1, 2],
|
|
|
|
id: RPC.uuid(),
|
|
|
|
})
|
|
|
|
.setStartTimestamp(Date.now())
|
|
|
|
.setAssetsLargeImage('929325841350000660')
|
|
|
|
.setAssetsLargeText('Youtube')
|
|
|
|
.setAssetsSmallImage('895316294222635008')
|
|
|
|
.setAssetsSmallText('Bot')
|
|
|
|
client.user.setActivity(r.toDiscord().game);
|
|
|
|
// Button not working
|
2022-03-21 15:24:08 +00:00
|
|
|
```
|
2022-03-22 10:09:50 +00:00
|
|
|
<img src='https://cdn.discordapp.com/attachments/820557032016969751/955767445220646922/unknown.png'>
|
|
|
|
|
|
|
|
Rich Presence with Twitch / Spotify
|
|
|
|
|
|
|
|
```js
|
|
|
|
Update soon ~
|
|
|
|
```
|
|
|
|
|
|
|
|
<strong>How to get AssetID ?</strong>
|
|
|
|
|
|
|
|
Code
|
|
|
|
|
|
|
|
```js
|
|
|
|
// Bot ID
|
|
|
|
RPC.getRpcImages('817229550684471297').then(console.log);
|
|
|
|
```
|
|
|
|
Return
|
|
|
|
```js
|
|
|
|
// ID is AssetID
|
|
|
|
[
|
|
|
|
{ id: '838629816881381376', type: 1, name: 'honkai' },
|
|
|
|
{ id: '853533658250084352', type: 1, name: 'vscode' },
|
|
|
|
{ id: '895316294222635008', type: 1, name: 'botsagiri' },
|
|
|
|
{ id: '929324633063292929', type: 1, name: 'soundcloud' },
|
|
|
|
{ id: '929324634858479666', type: 1, name: 'spotify' },
|
|
|
|
{ id: '929325841350000660', type: 1, name: 'youtube' }
|
|
|
|
]
|
|
|
|
```
|
|
|
|
You can cache to use these files, do not run this function too much because it will be rate limit
|
|
|
|
And you can change the status 5 times every 20 seconds!
|
2022-03-21 13:12:36 +00:00
|
|
|
</details>
|
|
|
|
|
2022-03-24 12:35:59 +00:00
|
|
|
## Interaction
|
|
|
|
<details>
|
|
|
|
<summary>Button Click (v1)</summary>
|
|
|
|
|
|
|
|
```js
|
|
|
|
await Button.click(Message);
|
|
|
|
```
|
|
|
|
</details>
|
2022-03-24 17:03:20 +00:00
|
|
|
<details>
|
|
|
|
<summary>Message Select Menu (v1)</summary>
|
|
|
|
|
|
|
|
```js
|
|
|
|
await MessageSelectMenu.select(Message, value);
|
|
|
|
// value: ['value1', 'value2' , ...]
|
|
|
|
```
|
|
|
|
</details>
|
2022-03-25 16:31:17 +00:00
|
|
|
<details>
|
|
|
|
<summary>Slash Command (v1)</summary>
|
|
|
|
|
|
|
|
```js
|
|
|
|
const botID = '12345678987654321'
|
|
|
|
const user = await client.users.fetch(botID);
|
|
|
|
const application = await user.applications.fetch();
|
|
|
|
const command = application.cache.first();
|
|
|
|
await command.sendSlashCommand(messsage, ['option1', 'option2']);
|
|
|
|
// Eg: Slash /add role:123456789 user:987654321
|
|
|
|
// value: ['123456789', '987654321']
|
|
|
|
```
|
|
|
|
</details>
|
|
|
|
<details>
|
|
|
|
<summary>Message Context Command (v1)</summary>
|
|
|
|
|
|
|
|
```js
|
|
|
|
const botID = '12345678987654321'
|
|
|
|
const user = await client.users.fetch(botID);
|
|
|
|
const application = await user.applications.fetch();
|
|
|
|
const command = application.cache.first();
|
|
|
|
await command.sendContextMenu(messsage);
|
|
|
|
```
|
|
|
|
</details>
|
2022-03-24 12:35:59 +00:00
|
|
|
|
2022-03-25 17:01:26 +00:00
|
|
|
## User HypeSquad
|
|
|
|
<details>
|
|
|
|
<summary>Click to show</summary>
|
|
|
|
|
|
|
|
```js
|
|
|
|
await client.user.setHypeSquad('HOUSE_BRAVERY');
|
|
|
|
```
|
|
|
|
</details>
|
|
|
|
|
2022-03-21 11:15:44 +00:00
|
|
|
## More features
|
|
|
|
|
|
|
|
<details>
|
|
|
|
<summary><strong>Click to show</strong></summary>
|
|
|
|
- I need requests from you! Ask questions, I will help you!
|
2022-03-22 10:09:50 +00:00
|
|
|
</details>
|
|
|
|
|
|
|
|
## Warning
|
|
|
|
- This is a beta version, so there are some bugs.
|
|
|
|
- If you use the `Client.destroy()` function, for an account that uses 2FA, it will cause a logout and the Token will no longer be usable.
|
2022-03-24 10:55:32 +00:00
|
|
|
- Downgrade to Discord.js v13 (Old version is Discord.js v14@dev)
|