# 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) ## User Settings
Click to show ```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` */ // 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(); ```
## Discord User Info
Click to show 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, bio: null, 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 } ```
## Discord User Friend / Blocked
Click to show Code: ```js // You can use client.relationships to manage your friends and blocked users. 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, bio: null, 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 } ```
## Custom Status and RPC
Click to show Custom Status ```js const RichPresence = require('discord-rpc-contructor'); // My module :)) const custom = new RichPresence.CustomStatus() .setUnicodeEmoji('🎮') // Set Unicode Emoji [Using one] .setDiscordEmoji({ // Set Custom Emoji (Nitro Classic / Boost) [Using one] name: 'nom', id: '737373737373737373', animated: false, }) .setState('Testing') // Name of presence .toDiscord(); client.user.setActivity(custom); ``` Rich Presence [Custom] ```js const r = new Discord.RichPresence() .setApplicationId('817229550684471297') .setType('STREAMING') .setURL('https://youtube.com/watch?v=dQw4w9WgXcQ') .setState('State') .setName('Name') .setDetails('Details') .setParty({ max: 9, current: 1, id: Discord.getUUID(), }) .setStartTimestamp(Date.now()) .setAssetsLargeImage('929325841350000660') .setAssetsLargeText('Youtube') .setAssetsSmallImage('895316294222635008') .setAssetsSmallText('Bot') .addButton('name', 'https://link.com/') client.user.setActivity(r.toJSON()); ``` Rich Presence with Spotify ```js 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()); ``` New: You can now add custom images for RPC ! > Tutorial: + Step 1: Send photos by embed.thumbnail ```js const embed = new MessageEmbed().setThumbnail('image url'); const msg = await channel.send({ embeds: [embed] }); ``` + Step 2: Get proxyURL from message.embeds[0].thumbnail.proxyURL ```js const proxyURL = msg.embeds[0].thumbnail.proxyURL; ``` + Step 3: Put the URL in the constructor ```js const r = new Discord.RichPresence() .setApplicationId('817229550684471297') .setType('STREAMING') .setURL('https://youtube.com/watch?v=dQw4w9WgXcQ') .setState('State') .setName('Name') .setDetails('Details') .setParty({ max: 9, current: 1, id: Discord.getUUID(), }) .setStartTimestamp(Date.now()) .setAssetsLargeImage(proxyURL) .setAssetsLargeText('Youtube') .setAssetsSmallImage('895316294222635008') .setAssetsSmallText('Bot') .addButton('name', 'https://link.com/') client.user.setActivity(r.toDiscord().game); ``` And you can change the status 5 times every 20 seconds!
## User & ClientUser Method
Click to show ```js // HypeSquad await client.user.setHypeSquad('HOUSE_BRAVERY'); await client.user.setHypeSquad('HOUSE_BRILLIANCE'); await client.user.setHypeSquad('HOUSE_BALANCE'); await client.user.setHypeSquad('LEAVE'); // 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'); // Redeem Nitro await client.redeemNitro('code') ```