2022-04-11 05:53:02 +00:00
|
|
|
# Quick Links:
|
|
|
|
- [Setting](https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/Document/User.md#user-settings)
|
|
|
|
- [User Info](https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/Document/User.md#discord-user-info)
|
|
|
|
- [Relationship](https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/Document/User.md#discord-user-friend--blocked)
|
|
|
|
- [Rich Presence](https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/Document/User.md#custom-status-and-rpc)
|
|
|
|
- [Other](https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/Document/User.md#user--clientuser-method)
|
|
|
|
|
2022-04-10 13:11:20 +00:00
|
|
|
## User Settings
|
2022-05-21 14:14:59 +00:00
|
|
|
<details open>
|
2022-04-10 13:11:20 +00:00
|
|
|
<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`
|
|
|
|
*/
|
2022-04-16 15:56:18 +00:00
|
|
|
// Setting Status
|
|
|
|
client.setting.setCustomStatus({
|
|
|
|
status: 'online', // 'online' | 'idle' | 'dnd' | 'invisible' | null
|
|
|
|
text: 'Hello world', // String | null
|
|
|
|
emoji: '🎮', // UnicodeEmoji | DiscordEmoji | null
|
|
|
|
expires: null, // Date.now() + 1 * 3600 * 1000 <= 1h to ms
|
|
|
|
});
|
|
|
|
// => Clear
|
|
|
|
client.setting.setCustomStatus();
|
2022-04-10 13:11:20 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
</details>
|
|
|
|
|
|
|
|
## Discord User Info
|
2022-05-21 14:14:59 +00:00
|
|
|
<details open>
|
2022-04-10 13:11:20 +00:00
|
|
|
<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 },
|
|
|
|
connectedAccounts: [],
|
|
|
|
premiumSince: 1623357181151,
|
|
|
|
premiumGuildSince: 0,
|
2022-04-27 03:48:33 +00:00
|
|
|
bio: null,
|
2022-04-10 13:11:20 +00:00
|
|
|
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
|
2022-05-21 14:14:59 +00:00
|
|
|
<details open>
|
2022-04-10 13:11:20 +00:00
|
|
|
<summary><strong>Click to show</strong></summary>
|
|
|
|
|
|
|
|
Code:
|
|
|
|
```js
|
2022-04-12 05:46:08 +00:00
|
|
|
// You can use client.relationships to manage your friends and blocked users.
|
2022-04-10 13:11:20 +00:00
|
|
|
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 },
|
|
|
|
note: null,
|
|
|
|
connectedAccounts: [],
|
|
|
|
premiumSince: 1623357181151,
|
|
|
|
premiumGuildSince: 0,
|
2022-04-27 03:48:33 +00:00
|
|
|
bio: null,
|
2022-04-10 13:11:20 +00:00
|
|
|
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>
|
|
|
|
|
|
|
|
## Custom Status and RPC
|
|
|
|
|
2022-05-21 14:14:59 +00:00
|
|
|
<details open>
|
2022-04-10 13:11:20 +00:00
|
|
|
<summary><strong>Click to show</strong></summary>
|
|
|
|
Custom Status
|
|
|
|
|
|
|
|
```js
|
2022-07-06 19:08:00 +00:00
|
|
|
const r = new Discord.CustomStatus()
|
|
|
|
.setState('Discord')
|
|
|
|
.setEmoji('💬')
|
|
|
|
client.user.setActivity(r.toJSON());
|
2022-04-10 13:11:20 +00:00
|
|
|
```
|
|
|
|
|
2022-07-06 19:08:00 +00:00
|
|
|
<img src='https://cdn.discordapp.com/attachments/820557032016969751/994318117243203758/unknown.png'>
|
|
|
|
|
2022-04-10 13:11:20 +00:00
|
|
|
Rich Presence [Custom]
|
|
|
|
```js
|
2022-07-06 18:42:21 +00:00
|
|
|
const r = new Discord.RichPresence()
|
2022-04-10 13:11:20 +00:00
|
|
|
.setApplicationId('817229550684471297')
|
2022-07-06 18:42:21 +00:00
|
|
|
.setType('STREAMING')
|
|
|
|
.setURL('https://youtube.com/watch?v=dQw4w9WgXcQ')
|
2022-04-10 13:11:20 +00:00
|
|
|
.setState('State')
|
|
|
|
.setName('Name')
|
|
|
|
.setDetails('Details')
|
|
|
|
.setParty({
|
2022-07-06 18:42:21 +00:00
|
|
|
max: 9,
|
|
|
|
current: 1,
|
|
|
|
id: Discord.getUUID(),
|
2022-04-10 13:11:20 +00:00
|
|
|
})
|
|
|
|
.setStartTimestamp(Date.now())
|
|
|
|
.setAssetsLargeImage('929325841350000660')
|
|
|
|
.setAssetsLargeText('Youtube')
|
|
|
|
.setAssetsSmallImage('895316294222635008')
|
|
|
|
.setAssetsSmallText('Bot')
|
2022-07-06 18:42:21 +00:00
|
|
|
.addButton('name', 'https://link.com/')
|
|
|
|
client.user.setActivity(r.toJSON());
|
2022-04-10 13:11:20 +00:00
|
|
|
```
|
2022-07-06 18:42:21 +00:00
|
|
|
<img src='https://cdn.discordapp.com/attachments/820557032016969751/994300662378676264/unknown.png'>
|
2022-04-10 13:11:20 +00:00
|
|
|
|
2022-07-06 18:42:21 +00:00
|
|
|
Rich Presence with Spotify
|
2022-04-10 13:11:20 +00:00
|
|
|
```js
|
2022-07-06 18:42:21 +00:00
|
|
|
const r = new Discord.SpotifyRPC(client)
|
|
|
|
.setAssetsLargeImage("spotify:ab67616d00001e02768629f8bc5b39b68797d1bb") // Image ID
|
|
|
|
.setAssetsSmallImage("spotify:ab67616d00001e02768629f8bc5b39b68797d1bb")
|
|
|
|
.setState('state')
|
|
|
|
.setDetails('details')
|
|
|
|
.setSongId('667eE4CFfNtJloC6Lvmgrx'); // Song ID
|
|
|
|
client.user.setActivity(r.toJSON());
|
2022-04-10 13:11:20 +00:00
|
|
|
```
|
2022-07-06 18:42:21 +00:00
|
|
|
<img src='https://cdn.discordapp.com/attachments/820557032016969751/994308354535075980/unknown.png'>
|
|
|
|
|
2022-04-10 13:11:20 +00:00
|
|
|
|
2022-04-16 17:11:46 +00:00
|
|
|
<strong>New: You can now add custom images for RPC !</strong>
|
|
|
|
> Tutorial:
|
2022-04-17 13:42:00 +00:00
|
|
|
|
2022-05-06 12:44:23 +00:00
|
|
|
+ Step 1: Send photos by embed.thumbnail
|
2022-04-17 13:42:00 +00:00
|
|
|
|
2022-05-06 12:44:23 +00:00
|
|
|
```js
|
|
|
|
const embed = new MessageEmbed().setThumbnail('image url');
|
|
|
|
const msg = await channel.send({ embeds: [embed] });
|
2022-04-19 15:33:02 +00:00
|
|
|
```
|
2022-05-06 12:44:23 +00:00
|
|
|
+ Step 2: Get proxyURL from message.embeds[0].thumbnail.proxyURL
|
2022-04-19 16:34:29 +00:00
|
|
|
|
2022-05-06 12:44:23 +00:00
|
|
|
```js
|
|
|
|
const proxyURL = msg.embeds[0].thumbnail.proxyURL;
|
|
|
|
```
|
|
|
|
+ Step 3: Put the URL in the constructor
|
2022-04-19 15:33:02 +00:00
|
|
|
|
2022-04-17 13:42:00 +00:00
|
|
|
```js
|
2022-07-06 18:42:21 +00:00
|
|
|
const r = new Discord.RichPresence()
|
2022-04-17 13:42:00 +00:00
|
|
|
.setApplicationId('817229550684471297')
|
2022-07-06 18:42:21 +00:00
|
|
|
.setType('STREAMING')
|
|
|
|
.setURL('https://youtube.com/watch?v=dQw4w9WgXcQ')
|
2022-04-17 13:42:00 +00:00
|
|
|
.setState('State')
|
|
|
|
.setName('Name')
|
|
|
|
.setDetails('Details')
|
2022-07-06 18:42:21 +00:00
|
|
|
.setParty({
|
|
|
|
max: 9,
|
|
|
|
current: 1,
|
|
|
|
id: Discord.getUUID(),
|
|
|
|
})
|
|
|
|
.setStartTimestamp(Date.now())
|
|
|
|
.setAssetsLargeImage(proxyURL)
|
2022-04-17 13:42:00 +00:00
|
|
|
.setAssetsLargeText('Youtube')
|
2022-05-06 12:44:23 +00:00
|
|
|
.setAssetsSmallImage('895316294222635008')
|
2022-04-17 13:42:00 +00:00
|
|
|
.setAssetsSmallText('Bot')
|
2022-07-06 18:42:21 +00:00
|
|
|
.addButton('name', 'https://link.com/')
|
2022-04-17 13:42:00 +00:00
|
|
|
client.user.setActivity(r.toDiscord().game);
|
|
|
|
```
|
|
|
|
|
2022-04-10 13:11:20 +00:00
|
|
|
And you can change the status 5 times every 20 seconds!
|
|
|
|
</details>
|
|
|
|
|
|
|
|
## User & ClientUser Method
|
2022-05-21 14:14:59 +00:00
|
|
|
<details open>
|
2022-04-13 10:51:43 +00:00
|
|
|
<summary><strong>Click to show</strong></summary>
|
2022-04-10 13:11:20 +00:00
|
|
|
|
|
|
|
```js
|
|
|
|
// HypeSquad
|
|
|
|
await client.user.setHypeSquad('HOUSE_BRAVERY');
|
|
|
|
await client.user.setHypeSquad('HOUSE_BRILLIANCE');
|
|
|
|
await client.user.setHypeSquad('HOUSE_BALANCE');
|
2022-04-12 05:46:08 +00:00
|
|
|
await client.user.setHypeSquad('LEAVE');
|
2022-04-10 13:11:20 +00:00
|
|
|
// Set Note to User
|
|
|
|
await user.setNote('Hello World');
|
|
|
|
// Set Username
|
|
|
|
await client.user.setUsername('new username', 'password');
|
|
|
|
// Set Accent Color
|
|
|
|
await client.user.setAccentColor('RED'); // set color same as Embed.setColor()
|
|
|
|
// Set Banner
|
|
|
|
await client.user.setBanner('image file / image url'); // same as setAvatar & Require Nitro level 2
|
|
|
|
// Set Discord Tag
|
|
|
|
await client.user.setDiscriminator('1234', 'password'); // #1234 & Require Nitro
|
|
|
|
// Set About me
|
|
|
|
await client.user.setAboutMe('Hello World');
|
|
|
|
// Set Email
|
|
|
|
await client.user.setEmail('aiko.dev@mail.nezukobot.vn', 'password'); // It is clone email =))
|
|
|
|
// Change Password
|
|
|
|
await client.user.setPassword('old password', 'new password');
|
|
|
|
// Disable Account
|
|
|
|
await client.user.disableAccount('password');
|
|
|
|
// Delete Account [WARNING] Cannot be changed once used!
|
|
|
|
await client.user.deleteAccount('password');
|
2022-04-25 13:22:24 +00:00
|
|
|
// Redeem Nitro
|
|
|
|
await client.redeemNitro('code')
|
2022-04-10 13:11:20 +00:00
|
|
|
```
|
2022-04-19 15:33:02 +00:00
|
|
|
</details>
|